diff --git a/polaris-core/src/main/java/org/apache/polaris/core/connection/ConnectionType.java b/polaris-core/src/main/java/org/apache/polaris/core/connection/ConnectionType.java index 3c2d4430a9..56796a95c4 100644 --- a/polaris-core/src/main/java/org/apache/polaris/core/connection/ConnectionType.java +++ b/polaris-core/src/main/java/org/apache/polaris/core/connection/ConnectionType.java @@ -40,10 +40,7 @@ public enum ConnectionType { static { // find max array size int maxCode = - Arrays.stream(AuthenticationType.values()) - .mapToInt(AuthenticationType::getCode) - .max() - .orElse(0); + Arrays.stream(ConnectionType.values()).mapToInt(ConnectionType::getCode).max().orElse(0); // allocate mapping array REVERSE_MAPPING_ARRAY = new ConnectionType[maxCode + 1];