Skip to content

Commit 1ba6f8b

Browse files
authored
Merge pull request #672 from sigstore/update-errorprone
Update errorprone -- ignore EnumOrdinal
2 parents b15c891 + 06b231f commit 1ba6f8b

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

build-logic/jvm/src/main/kotlin/build-logic.errorprone.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!project.hasProperty("skipErrorprone")) {
88
apply(plugin = "net.ltgt.errorprone")
99

1010
dependencies {
11-
"errorprone"("com.google.errorprone:error_prone_core:2.25.0")
11+
"errorprone"("com.google.errorprone:error_prone_core:2.26.1")
1212
"annotationProcessor"("com.google.guava:guava-beta-checker:1.0")
1313
}
1414

sigstore-java/src/main/java/dev/sigstore/encryption/certificates/transparency/CertificateEntry.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public byte[] getIssuerKeyHash() {
150150
}
151151

152152
/** TLS encode the CertificateEntry structure. */
153+
@SuppressWarnings("EnumOrdinal")
153154
public void encode(OutputStream output) throws SerializationException {
154155
Serialization.writeNumber(output, entryType.ordinal(), CTConstants.LOG_ENTRY_TYPE_LENGTH);
155156
if (entryType == LogEntryType.PRECERT_ENTRY) {

sigstore-java/src/main/java/dev/sigstore/encryption/certificates/transparency/SignedCertificateTimestamp.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ public Origin getOrigin() {
8888
}
8989

9090
/** Decode a TLS encoded SignedCertificateTimestamp structure. */
91+
@SuppressWarnings("EnumOrdinal")
9192
public static SignedCertificateTimestamp decode(InputStream input, Origin origin)
9293
throws SerializationException {
9394
int version = Serialization.readNumber(input, CTConstants.VERSION_LENGTH);
@@ -111,6 +112,7 @@ public static SignedCertificateTimestamp decode(byte[] input, Origin origin)
111112
}
112113

113114
/** TLS encode the signed part of the SCT, as described by RFC6962 section 3.2. */
115+
@SuppressWarnings("EnumOrdinal")
114116
public void encodeTBS(OutputStream output, CertificateEntry certEntry)
115117
throws SerializationException {
116118
Serialization.writeNumber(output, version.ordinal(), CTConstants.VERSION_LENGTH);

0 commit comments

Comments
 (0)