it_shall_not_named_`ignored`_ (#540)
This commit is contained in:
parent
0eb4a8f87f
commit
29b87d5cea
|
@ -740,11 +740,11 @@ public class FieldUtils {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (final NoSuchFieldException | IllegalAccessException ignored) {
|
} catch (final NoSuchFieldException | IllegalAccessException e) {
|
||||||
if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_12)) {
|
if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_12)) {
|
||||||
throw new UnsupportedOperationException(
|
throw new UnsupportedOperationException(
|
||||||
"In java 12+ final cannot be removed.",
|
"In java 12+ final cannot be removed.",
|
||||||
ignored
|
e
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// else no exception is thrown because we can modify final.
|
// else no exception is thrown because we can modify final.
|
||||||
|
|
Loading…
Reference in New Issue