File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
build-logic/jvm/src/main/kotlin
sigstore-java/src/main/java/dev/sigstore/json/canonicalizer Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if (!project.hasProperty("skipErrorprone")) {
8
8
apply (plugin = " net.ltgt.errorprone" )
9
9
10
10
dependencies {
11
- " errorprone" (" com.google.errorprone:error_prone_core:2.22 .0" )
11
+ " errorprone" (" com.google.errorprone:error_prone_core:2.23 .0" )
12
12
" annotationProcessor" (" com.google.guava:guava-beta-checker:1.0" )
13
13
}
14
14
Original file line number Diff line number Diff line change 17
17
package dev .sigstore .json .canonicalizer ;
18
18
19
19
import java .io .IOException ;
20
+ import java .nio .charset .StandardCharsets ;
20
21
import java .util .Map ;
21
22
import java .util .TreeMap ;
22
23
import java .util .Vector ;
@@ -37,7 +38,7 @@ public JsonCanonicalizer(String jsonData) throws IOException {
37
38
}
38
39
39
40
public JsonCanonicalizer (byte [] jsonData ) throws IOException {
40
- this (new String (jsonData , "utf-8" ));
41
+ this (new String (jsonData , StandardCharsets . UTF_8 ));
41
42
}
42
43
43
44
private void escape (char c ) {
@@ -137,7 +138,7 @@ public String getEncodedString() {
137
138
}
138
139
139
140
public byte [] getEncodedUTF8 () throws IOException {
140
- return getEncodedString ().getBytes ("utf-8" );
141
+ return getEncodedString ().getBytes (StandardCharsets . UTF_8 );
141
142
}
142
143
}
143
144
You can’t perform that action at this time.
0 commit comments