HHH-11897 - Fix checkstyle errors

This commit is contained in:
Andrea Boriero 2017-08-21 10:27:35 +02:00
parent 407360d957
commit 9a22960c3e
1 changed files with 11 additions and 11 deletions

View File

@ -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> X get(TupleElement<X> tupleElement) {
return get( tupleElement.getAlias(), tupleElement.getJavaType() );
}