Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a032acb

Browse files
use existing constant
1 parent fe664b9 commit a032acb

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( newString[ 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( newString[ 0 ] );
137+
affectedTableSpaces = spacesList.toArray( EMPTY_STRING_ARRAY );
137138
}
138139

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /