Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update errorprone -- ignore EnumOrdinal #672

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
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 @@ -8,7 +8,7 @@ if (!project.hasProperty("skipErrorprone")) {
apply(plugin = "net.ltgt.errorprone")

dependencies {
"errorprone"("com.google.errorprone:error_prone_core:2.25.0")
"errorprone"("com.google.errorprone:error_prone_core:2.26.1")
"annotationProcessor"("com.google.guava:guava-beta-checker:1.0")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public byte[] getIssuerKeyHash() {
}

/** TLS encode the CertificateEntry structure. */
@SuppressWarnings("EnumOrdinal")
public void encode(OutputStream output) throws SerializationException {
Serialization.writeNumber(output, entryType.ordinal(), CTConstants.LOG_ENTRY_TYPE_LENGTH);
if (entryType == LogEntryType.PRECERT_ENTRY) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public Origin getOrigin() {
}

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

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