Fix checkstyle issue due to improper use of spacing
This commit is contained in:
parent
e6d3ad5013
commit
d658295025
|
@ -134,20 +134,21 @@ public class JavaTypeDescriptorRegistry {
|
|||
super(type, createMutabilityPlan(type));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T> MutabilityPlan<T> createMutabilityPlan(final Class<T> type) {
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T> MutabilityPlan<T> createMutabilityPlan(final Class<T> type) {
|
||||
if ( type.isAnnotationPresent( Immutable.class ) ) {
|
||||
return ImmutableMutabilityPlan.INSTANCE;
|
||||
}
|
||||
// MutableMutabilityPlan is the "safest" option, but we do not necessarily know how to deepCopy etc...
|
||||
return new MutableMutabilityPlan<T>() {
|
||||
@Override
|
||||
protected T deepCopyNotNull(T value) {
|
||||
throw new HibernateException(
|
||||
"Not known how to deep copy value of type: [" + type.getName() + "]"
|
||||
);
|
||||
}
|
||||
};
|
||||
// MutableMutabilityPlan is the "safest" option, but we do not necessarily know how to deepCopy etc...
|
||||
return new MutableMutabilityPlan<T>() {
|
||||
@Override
|
||||
protected T deepCopyNotNull(T value) {
|
||||
throw new HibernateException(
|
||||
"Not known how to deep copy value of type: [" + type
|
||||
.getName() + "]"
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue