Skip to content

Commit 5a31064

Browse files
committed
continue big cleanup of EntityPersisters
1 parent 34141c6 commit 5a31064

File tree

4 files changed

+409
-422
lines changed

4 files changed

+409
-422
lines changed

hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
import org.hibernate.internal.util.IndexedConsumer;
7979
import org.hibernate.internal.util.MarkerObject;
8080
import org.hibernate.internal.util.StringHelper;
81-
import org.hibernate.internal.util.collections.ArrayHelper;
8281
import org.hibernate.internal.util.collections.LockModeEnumMap;
8382
import org.hibernate.jdbc.Expectation;
8483
import org.hibernate.loader.ast.internal.EntityConcreteTypeLoader;
@@ -270,7 +269,9 @@
270269
import static org.hibernate.internal.util.StringHelper.qualifyConditionally;
271270
import static org.hibernate.internal.util.StringHelper.root;
272271
import static org.hibernate.internal.util.StringHelper.unqualify;
272+
import static org.hibernate.internal.util.collections.ArrayHelper.EMPTY_INT_ARRAY;
273273
import static org.hibernate.internal.util.collections.ArrayHelper.contains;
274+
import static org.hibernate.internal.util.collections.ArrayHelper.indexOf;
274275
import static org.hibernate.internal.util.collections.ArrayHelper.isAllTrue;
275276
import static org.hibernate.internal.util.collections.ArrayHelper.to2DStringArray;
276277
import static org.hibernate.internal.util.collections.ArrayHelper.toIntArray;
@@ -2308,7 +2309,7 @@ public static String generateTableAlias(String rootAlias, int tableNumber) {
23082309
}
23092310

23102311
private int getSubclassPropertyIndex(String propertyName) {
2311-
return ArrayHelper.indexOf( subclassPropertyNameClosure, propertyName );
2312+
return indexOf( subclassPropertyNameClosure, propertyName );
23122313
}
23132314

23142315
public String[] getPropertyColumnNames(int i) {
@@ -2371,7 +2372,7 @@ private static boolean isPrefix(final AttributeMapping attributeMapping, final S
23712372
@Override
23722373
public int[] resolveAttributeIndexes(String[] attributeNames) {
23732374
if ( attributeNames == null || attributeNames.length == 0 ) {
2374-
return ArrayHelper.EMPTY_INT_ARRAY;
2375+
return EMPTY_INT_ARRAY;
23752376
}
23762377
final List<Integer> fields = new ArrayList<>( attributeNames.length );
23772378

@@ -2417,7 +2418,7 @@ public int[] resolveDirtyAttributeIndexes(
24172418
: attributeNames.length + mutablePropertiesIndexes.cardinality();
24182419
final List<Integer> fields = new ArrayList<>( estimatedSize );
24192420
if ( estimatedSize == 0 ) {
2420-
return ArrayHelper.EMPTY_INT_ARRAY;
2421+
return EMPTY_INT_ARRAY;
24212422
}
24222423
if ( !mutablePropertiesIndexes.isEmpty() ) {
24232424
// We have to check the state for "mutable" properties as dirty tracking isn't aware of mutable types

0 commit comments

Comments
 (0)