Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
Loading