Checkstyle fixes.
This commit is contained in:
parent
6c1948b6b3
commit
a0f430a94d
|
@ -1247,12 +1247,13 @@ public class SessionFactoryBuilderImpl implements SessionFactoryBuilderImplement
|
|||
|
||||
private static Supplier<? extends Interceptor> interceptorSupplier(Class<? extends Interceptor> clazz) {
|
||||
return () -> {
|
||||
try {
|
||||
return clazz.newInstance();
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
throw new HibernateException( "Could not supply session-scoped SessionFactory Interceptor", e );
|
||||
}
|
||||
};
|
||||
try {
|
||||
return clazz.newInstance();
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException e) {
|
||||
throw new HibernateException( "Could not supply session-scoped SessionFactory Interceptor", e );
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -87,7 +87,8 @@ public interface SessionFactoryOptionsState {
|
|||
return () -> {
|
||||
try {
|
||||
return getStatelessInterceptorImplementor().newInstance();
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException e) {
|
||||
throw new HibernateException( "Could not supply session-scoped SessionFactory Interceptor", e );
|
||||
}
|
||||
};
|
||||
|
|
|
@ -117,7 +117,8 @@ public interface SessionFactoryOptions {
|
|||
return () -> {
|
||||
try {
|
||||
return getStatelessInterceptorImplementor().newInstance();
|
||||
} catch (InstantiationException | IllegalAccessException e) {
|
||||
}
|
||||
catch (InstantiationException | IllegalAccessException e) {
|
||||
throw new HibernateException( "Could not supply session-scoped SessionFactory Interceptor", e );
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue