From 9a22960c3edc1589b4e12dade3a72f8c1d93e325 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Mon, 21 Aug 2017 10:27:35 +0200 Subject: [PATCH] HHH-11897 - Fix checkstyle errors --- .../jpa/spi/NativeQueryTupleTransformer.java | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryTupleTransformer.java b/hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryTupleTransformer.java index d5e851478b..c9cd55a7d1 100644 --- a/hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryTupleTransformer.java +++ b/hibernate-core/src/main/java/org/hibernate/jpa/spi/NativeQueryTupleTransformer.java @@ -58,11 +58,11 @@ public class NativeQueryTupleTransformer extends BasicTransformerAdapter { public NativeTupleImpl(Object[] tuple, String[] aliases) { if ( tuple == null ) { - throw new HibernateException( "Tuple must not be null" ); + throw new HibernateException( "Tuple must not be null" ); } if ( aliases == null ) { - throw new HibernateException( "Aliases must not be null" ); - } + throw new HibernateException( "Aliases must not be null" ); + } if ( tuple.length != aliases.length ) { throw new HibernateException( "Got different size of tuples and aliases" ); } @@ -123,15 +123,15 @@ public class NativeQueryTupleTransformer extends BasicTransformerAdapter { return elements; } - private Class getValueClass(Object value) { - Class valueClass = Object.class; - if ( value != null ) { - valueClass = value.getClass(); - } - return valueClass; - } + private Class getValueClass(Object value) { + Class valueClass = Object.class; + if ( value != null ) { + valueClass = value.getClass(); + } + return valueClass; + } - @Override + @Override public X get(TupleElement tupleElement) { return get( tupleElement.getAlias(), tupleElement.getJavaType() ); }