Skip to content

Commit 58a371c

Browse files
committed
Ensure fields are final only when exported
1 parent ef7982d commit 58a371c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jme3-core/src/main/java/com/jme3/util/struct/StructUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ private static List<StructField<?>> getFields(Struct struct, int depth, ArrayLis
6767
Field[] fields = structClass.getDeclaredFields();
6868
for (Field field : fields) {
6969
field.setAccessible(true);
70-
if (classFields != null) classFields.add(field);
7170

7271
Object o = field.get(struct);
7372
if (o instanceof StructField) {
73+
if (classFields != null) classFields.add(field);
7474
StructField<?> so = (StructField<?>) o;
7575
structFields.add(so);
7676
}

0 commit comments

Comments
 (0)