get value for public final fields by direct access
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
577e20ebe9
commit
72b29cd41c
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue