HHH-14740 Still need the nullcheck removed in HHH-14727

This commit is contained in:
Sanne Grinovero 2021-07-20 11:32:40 +01:00 committed by Sanne Grinovero
parent 4454f170fa
commit 0325cd632a
1 changed files with 4 additions and 2 deletions

View File

@ -20,13 +20,15 @@ import org.hibernate.exception.spi.SQLExceptionConverter;
*/
public class StandardSQLExceptionConverter implements SQLExceptionConverter {
private final ArrayList<SQLExceptionConversionDelegate> delegates = new ArrayList<SQLExceptionConversionDelegate>(4);
private final ArrayList<SQLExceptionConversionDelegate> delegates = new ArrayList<>();
public StandardSQLExceptionConverter() {
}
public void addDelegate(SQLExceptionConversionDelegate delegate) {
this.delegates.add( delegate );
if ( delegate != null ) {
this.delegates.add( delegate );
}
}
@Override