DATACMNS-1074 - Polishing.

Enum names in all caps.

Original pull request: #221.
This commit is contained in:
Oliver Gierke
2017-06-07 09:49:28 +02:00
parent 9038e6894c
commit 83d9c56eb4

View File

@@ -86,7 +86,7 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
* Open (via reflection construction of {@link MethodHandles.Lookup}) method handle lookup. Works with Java 8 and
* with Java 9 permitting illegal access.
*/
Open {
OPEN {
private final Optional<Constructor<Lookup>> constructor = getLookupConstructor();
@@ -116,7 +116,7 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
/**
* Encapsulated {@link MethodHandle} lookup working on Java 9.
*/
Encapsulated {
ENCAPSULATED {
/*
* (non-Javadoc)
@@ -180,6 +180,7 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
ReflectionUtils.makeAccessible(constructor);
return Optional.of(constructor);
} catch (Exception ex) {
// this is the signal that we are on Java 9 (encapsulated) and can't use the accessible constructor approach.