HHH-5736 Removing unnecessary instance check. Applying Hibernate formatting.
This commit is contained in:
parent
18ed85a0cd
commit
ed89cef855
|
@ -251,11 +251,8 @@ public class CriteriaBuilderImpl implements CriteriaBuilder, Serializable {
|
||||||
// predicates ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// predicates ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
public Predicate wrap(Expression<Boolean> expression) {
|
public Predicate wrap(Expression<Boolean> expression) {
|
||||||
if ( CompoundPredicate.class.isInstance( expression ) ) {
|
if ( Predicate.class.isInstance( expression ) ) {
|
||||||
return (( CompoundPredicate ) expression);
|
return ( (Predicate) expression );
|
||||||
}
|
|
||||||
else if(Predicate.class.isInstance(expression)) {
|
|
||||||
return ( ( Predicate ) expression );
|
|
||||||
}
|
}
|
||||||
else if ( PathImplementor.class.isInstance( expression ) ) {
|
else if ( PathImplementor.class.isInstance( expression ) ) {
|
||||||
return new BooleanAssertionPredicate( this, expression, Boolean.TRUE );
|
return new BooleanAssertionPredicate( this, expression, Boolean.TRUE );
|
||||||
|
|
Loading…
Reference in New Issue