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));
|
super(type, createMutabilityPlan(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
private static <T> MutabilityPlan<T> createMutabilityPlan(final Class<T> type) {
|
private static <T> MutabilityPlan<T> createMutabilityPlan(final Class<T> type) {
|
||||||
if ( type.isAnnotationPresent( Immutable.class ) ) {
|
if ( type.isAnnotationPresent( Immutable.class ) ) {
|
||||||
return ImmutableMutabilityPlan.INSTANCE;
|
return ImmutableMutabilityPlan.INSTANCE;
|
||||||
}
|
}
|
||||||
// MutableMutabilityPlan is the "safest" option, but we do not necessarily know how to deepCopy etc...
|
// MutableMutabilityPlan is the "safest" option, but we do not necessarily know how to deepCopy etc...
|
||||||
return new MutableMutabilityPlan<T>() {
|
return new MutableMutabilityPlan<T>() {
|
||||||
@Override
|
@Override
|
||||||
protected T deepCopyNotNull(T value) {
|
protected T deepCopyNotNull(T value) {
|
||||||
throw new HibernateException(
|
throw new HibernateException(
|
||||||
"Not known how to deep copy value of type: [" + type.getName() + "]"
|
"Not known how to deep copy value of type: [" + type
|
||||||
);
|
.getName() + "]"
|
||||||
}
|
);
|
||||||
};
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue