private FieldExpression ensureInstance ( final FieldExpression expression , final FieldExpression defaultExpression ) { Preconditions . checkNotNull ( defaultExpression , "Default expression must not be null" ) ; if ( expression != null ) { return expression ; } else { return defaultExpression ; } }
Give an expression instance will return it if is not null . Otherwise will return the defaultExpression ;