Checkstyle fixes.

This commit is contained in:
Chris Cranford 2017-12-12 13:40:29 -05:00
parent 6c1948b6b3
commit a0f430a94d
3 changed files with 11 additions and 8 deletions

View File

@ -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

View File

@ -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 );
}
};

View File

@ -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 );
}
};