get value for public final fields by direct access

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2018-08-09 15:43:35 +02:00
parent 577e20ebe9
commit 72b29cd41c
No known key found for this signature in database
GPG Key ID: 9858809D6F8F6E7E
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ public abstract class BaseConfigurator<T> implements Configurator<T> {
if (exclusions.contains(field.getName())) continue;
if (PersistedList.class.isAssignableFrom(field.getType())) {
// see Jenkins#clouds
Attribute attribute = detectActualType(field.getName(), TypePair.of(field));
Attribute attribute = detectActualType(field.getName(), TypePair.of(field))
.getter(field::get); // get value by direct access to public final field
attributes.add(attribute);
}
}