Skip to content

Commit a54ad65

Browse files
committed
Use set/get on AtomicBoolean compatibility with Java 8
1 parent 9bb6a0f commit a54ad65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

junit-platform-commons/src/main/java/org/junit/platform/commons/util/ReflectionUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,8 +1261,8 @@ public static boolean isNestedClassPresent(Class<?> clazz, Predicate<Class<?>> p
12611261
Preconditions.notNull(predicate, "Predicate must not be null");
12621262

12631263
AtomicBoolean foundNestedClass = new AtomicBoolean(false);
1264-
visitAllNestedClasses(clazz, predicate, __ -> foundNestedClass.setPlain(true));
1265-
return foundNestedClass.getPlain();
1264+
visitAllNestedClasses(clazz, predicate, __ -> foundNestedClass.set(true));
1265+
return foundNestedClass.get();
12661266
}
12671267

12681268
/**

0 commit comments

Comments
 (0)