@Test void getNativeEnumClassesManuallyIsImmutable() { final Set<? extends Class<? extends NativeEnum>> nativeEnumClassesManually = ConstantUtil.getNativeEnumClassesManually(); Assertions.assertThrows(UnsupportedOperationException.class, () -> nativeEnumClassesManually.add(null)); Assertions.assertThrows(UnsupportedOperationException.class, () -> nativeEnumClassesManually.removeIf(o -> true)); }
static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() { return NATIVE_ENUM_CLASSES; }
ConstantUtil { static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() { return NATIVE_ENUM_CLASSES; } }
ConstantUtil { static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() { return NATIVE_ENUM_CLASSES; } private  ConstantUtil(); }
ConstantUtil { static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() { return NATIVE_ENUM_CLASSES; } private  ConstantUtil();  }
ConstantUtil { static Set<? extends Class<? extends NativeEnum>> getNativeEnumClassesManually() { return NATIVE_ENUM_CLASSES; } private  ConstantUtil();   }