HHH-11897 - Fix checkstyle errors
This commit is contained in:
parent
407360d957
commit
9a22960c3e
|
@ -58,11 +58,11 @@ public class NativeQueryTupleTransformer extends BasicTransformerAdapter {
|
||||||
|
|
||||||
public NativeTupleImpl(Object[] tuple, String[] aliases) {
|
public NativeTupleImpl(Object[] tuple, String[] aliases) {
|
||||||
if ( tuple == null ) {
|
if ( tuple == null ) {
|
||||||
throw new HibernateException( "Tuple must not be null" );
|
throw new HibernateException( "Tuple must not be null" );
|
||||||
}
|
}
|
||||||
if ( aliases == 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 ) {
|
if ( tuple.length != aliases.length ) {
|
||||||
throw new HibernateException( "Got different size of tuples and aliases" );
|
throw new HibernateException( "Got different size of tuples and aliases" );
|
||||||
}
|
}
|
||||||
|
@ -123,15 +123,15 @@ public class NativeQueryTupleTransformer extends BasicTransformerAdapter {
|
||||||
return elements;
|
return elements;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Class<?> getValueClass(Object value) {
|
private Class<?> getValueClass(Object value) {
|
||||||
Class<?> valueClass = Object.class;
|
Class<?> valueClass = Object.class;
|
||||||
if ( value != null ) {
|
if ( value != null ) {
|
||||||
valueClass = value.getClass();
|
valueClass = value.getClass();
|
||||||
}
|
}
|
||||||
return valueClass;
|
return valueClass;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public <X> X get(TupleElement<X> tupleElement) {
|
public <X> X get(TupleElement<X> tupleElement) {
|
||||||
return get( tupleElement.getAlias(), tupleElement.getJavaType() );
|
return get( tupleElement.getAlias(), tupleElement.getJavaType() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue