We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fbcf8d commit a9ad720Copy full SHA for a9ad720
polaris-core/src/main/java/org/apache/polaris/core/connection/ConnectionType.java
@@ -40,10 +40,7 @@ public enum ConnectionType {
40
static {
41
// find max array size
42
int maxCode =
43
- Arrays.stream(AuthenticationType.values())
44
- .mapToInt(AuthenticationType::getCode)
45
- .max()
46
- .orElse(0);
+ Arrays.stream(ConnectionType.values()).mapToInt(ConnectionType::getCode).max().orElse(0);
47
48
// allocate mapping array
49
REVERSE_MAPPING_ARRAY = new ConnectionType[maxCode + 1];
0 commit comments