Skip to content

Commit 72b29cd

Browse files
committed
get value for public final fields by direct access
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 577e20e commit 72b29cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/main/java/io/jenkins/plugins/casc/BaseConfigurator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ public abstract class BaseConfigurator<T> implements Configurator<T> {
5858
if (exclusions.contains(field.getName())) continue;
5959
if (PersistedList.class.isAssignableFrom(field.getType())) {
6060
// see Jenkins#clouds
61-
Attribute attribute = detectActualType(field.getName(), TypePair.of(field));
61+
Attribute attribute = detectActualType(field.getName(), TypePair.of(field))
62+
.getter(field::get); // get value by direct access to public final field
6263
attributes.add(attribute);
6364
}
6465
}

0 commit comments

Comments
 (0)