Skip to content

Commit 4e9bcf8

Browse files
committed
use existing constant
1 parent c908efa commit 4e9bcf8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hibernate-core/src/main/java/org/hibernate/action/internal/BulkOperationCleanupAction.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.hibernate.sql.ast.tree.insert.InsertSelectStatement;
2727

2828
import static java.util.Collections.addAll;
29+
import static org.hibernate.internal.util.collections.ArrayHelper.EMPTY_STRING_ARRAY;
2930

3031
/**
3132
* An {@link org.hibernate.engine.spi.ActionQueue} {@link Executable} for
@@ -87,7 +88,7 @@ public BulkOperationCleanupAction(SharedSessionContractImplementor session, Enti
8788
}
8889
}
8990

90-
affectedTableSpaces = spacesList.toArray( new String[ 0 ] );
91+
affectedTableSpaces = spacesList.toArray( EMPTY_STRING_ARRAY );
9192
}
9293

9394
/**
@@ -133,7 +134,7 @@ public BulkOperationCleanupAction(SharedSessionContractImplementor session, Set<
133134
}
134135
} );
135136

136-
affectedTableSpaces = spacesList.toArray( new String[ 0 ] );
137+
affectedTableSpaces = spacesList.toArray( EMPTY_STRING_ARRAY );
137138
}
138139

139140
public static void schedule(SharedSessionContractImplementor session, SqmDmlStatement<?> statement) {

0 commit comments

Comments
 (0)