diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/function/DB2SubstringFunction.java b/hibernate-core/src/main/java/org/hibernate/dialect/function/DB2SubstringFunction.java index fd9c5033aa..787ad14a6c 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/function/DB2SubstringFunction.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/function/DB2SubstringFunction.java @@ -30,7 +30,7 @@ import org.hibernate.type.StandardBasicTypes; * @author Gail Badner */ public class DB2SubstringFunction extends StandardSQLFunction { - private static final Set possibleStringUnits = new HashSet<>( + private static final Set possibleStringUnits = new HashSet( Arrays.asList( "CODEUNITS16", "CODEUNITS32", "OCTETS" ) );