|
78 | 78 | import org.hibernate.internal.util.IndexedConsumer;
|
79 | 79 | import org.hibernate.internal.util.MarkerObject;
|
80 | 80 | import org.hibernate.internal.util.StringHelper;
|
81 |
| -import org.hibernate.internal.util.collections.ArrayHelper; |
82 | 81 | import org.hibernate.internal.util.collections.LockModeEnumMap;
|
83 | 82 | import org.hibernate.jdbc.Expectation;
|
84 | 83 | import org.hibernate.loader.ast.internal.EntityConcreteTypeLoader;
|
|
270 | 269 | import static org.hibernate.internal.util.StringHelper.qualifyConditionally;
|
271 | 270 | import static org.hibernate.internal.util.StringHelper.root;
|
272 | 271 | import static org.hibernate.internal.util.StringHelper.unqualify;
|
| 272 | +import static org.hibernate.internal.util.collections.ArrayHelper.EMPTY_INT_ARRAY; |
273 | 273 | import static org.hibernate.internal.util.collections.ArrayHelper.contains;
|
| 274 | +import static org.hibernate.internal.util.collections.ArrayHelper.indexOf; |
274 | 275 | import static org.hibernate.internal.util.collections.ArrayHelper.isAllTrue;
|
275 | 276 | import static org.hibernate.internal.util.collections.ArrayHelper.to2DStringArray;
|
276 | 277 | import static org.hibernate.internal.util.collections.ArrayHelper.toIntArray;
|
@@ -2308,7 +2309,7 @@ public static String generateTableAlias(String rootAlias, int tableNumber) {
|
2308 | 2309 | }
|
2309 | 2310 |
|
2310 | 2311 | private int getSubclassPropertyIndex(String propertyName) {
|
2311 |
| - return ArrayHelper.indexOf( subclassPropertyNameClosure, propertyName ); |
| 2312 | + return indexOf( subclassPropertyNameClosure, propertyName ); |
2312 | 2313 | }
|
2313 | 2314 |
|
2314 | 2315 | public String[] getPropertyColumnNames(int i) {
|
@@ -2371,7 +2372,7 @@ private static boolean isPrefix(final AttributeMapping attributeMapping, final S
|
2371 | 2372 | @Override
|
2372 | 2373 | public int[] resolveAttributeIndexes(String[] attributeNames) {
|
2373 | 2374 | if ( attributeNames == null || attributeNames.length == 0 ) {
|
2374 |
| - return ArrayHelper.EMPTY_INT_ARRAY; |
| 2375 | + return EMPTY_INT_ARRAY; |
2375 | 2376 | }
|
2376 | 2377 | final List<Integer> fields = new ArrayList<>( attributeNames.length );
|
2377 | 2378 |
|
@@ -2417,7 +2418,7 @@ public int[] resolveDirtyAttributeIndexes(
|
2417 | 2418 | : attributeNames.length + mutablePropertiesIndexes.cardinality();
|
2418 | 2419 | final List<Integer> fields = new ArrayList<>( estimatedSize );
|
2419 | 2420 | if ( estimatedSize == 0 ) {
|
2420 |
| - return ArrayHelper.EMPTY_INT_ARRAY; |
| 2421 | + return EMPTY_INT_ARRAY; |
2421 | 2422 | }
|
2422 | 2423 | if ( !mutablePropertiesIndexes.isEmpty() ) {
|
2423 | 2424 | // We have to check the state for "mutable" properties as dirty tracking isn't aware of mutable types
|
|
0 commit comments