Skip to content

Commit

Permalink
Change TLS metric Protocol/CipherSuite enums to use ints.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelaranda0 authored and prbprbprb committed Sep 15, 2024
1 parent 8c83e36 commit 6b13156
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/org/conscrypt/metrics/CipherSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public enum CipherSuite {
TLS_CIPHER_FAILED(0xFFFF),
;

final short id;
final int id;

public int getId() {
return this.id;
Expand All @@ -82,6 +82,6 @@ public static CipherSuite forName(String name) {
}

private CipherSuite(int id) {
this.id = (short) id;
this.id = id;
}
}
4 changes: 2 additions & 2 deletions common/src/main/java/org/conscrypt/metrics/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public enum Protocol {
TLS_PROTO_FAILED(0xFFFF),
;

final byte id;
final int id;

public int getId() {
return this.id;
Expand All @@ -59,6 +59,6 @@ public static Protocol forName(String name) {
}

private Protocol(int id) {
this.id = (byte) id;
this.id = id;
}
}

0 comments on commit 6b13156

Please sign in to comment.