Skip to content

Commit

Permalink
Merge pull request #562 from sigstore/update-errorprone
Browse files Browse the repository at this point in the history
Update errorprone (manual)
  • Loading branch information
loosebazooka authored Oct 23, 2023
2 parents b090669 + a0e8816 commit 93681d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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.22.0")
"errorprone"("com.google.errorprone:error_prone_core:2.23.0")
"annotationProcessor"("com.google.guava:guava-beta-checker:1.0")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package dev.sigstore.json.canonicalizer;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.TreeMap;
import java.util.Vector;
Expand All @@ -37,7 +38,7 @@ public JsonCanonicalizer(String jsonData) throws IOException {
}

public JsonCanonicalizer(byte[] jsonData) throws IOException {
this(new String(jsonData, "utf-8"));
this(new String(jsonData, StandardCharsets.UTF_8));
}

private void escape(char c) {
Expand Down Expand Up @@ -137,7 +138,7 @@ public String getEncodedString() {
}

public byte[] getEncodedUTF8() throws IOException {
return getEncodedString().getBytes("utf-8");
return getEncodedString().getBytes(StandardCharsets.UTF_8);
}
}

Expand Down

0 comments on commit 93681d9

Please sign in to comment.