From a0f430a94d7c695b050dc64f6b7e1c99da00e472 Mon Sep 17 00:00:00 2001 From: Chris Cranford Date: Tue, 12 Dec 2017 13:40:29 -0500 Subject: [PATCH] Checkstyle fixes. --- .../boot/internal/SessionFactoryBuilderImpl.java | 13 +++++++------ .../boot/internal/SessionFactoryOptionsState.java | 3 ++- .../hibernate/boot/spi/SessionFactoryOptions.java | 3 ++- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryBuilderImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryBuilderImpl.java index 7d57744ad3..2106325b74 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryBuilderImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryBuilderImpl.java @@ -1247,12 +1247,13 @@ public class SessionFactoryBuilderImpl implements SessionFactoryBuilderImplement private static Supplier interceptorSupplier(Class 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 diff --git a/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsState.java b/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsState.java index 60142d9df6..808c0620d8 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsState.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsState.java @@ -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 ); } }; diff --git a/hibernate-core/src/main/java/org/hibernate/boot/spi/SessionFactoryOptions.java b/hibernate-core/src/main/java/org/hibernate/boot/spi/SessionFactoryOptions.java index 00e0b1dde2..8ea6c96b02 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/spi/SessionFactoryOptions.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/spi/SessionFactoryOptions.java @@ -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 ); } };