File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
internal-api/src/test/groovy/datadog/trace/api/git Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -834,8 +834,6 @@ muzzle-dep-report:
834834 KUBERNETES_CPU_REQUEST : 10
835835 KUBERNETES_MEMORY_REQUEST : 20Gi
836836 KUBERNETES_MEMORY_LIMIT : 20Gi
837- LANG : C.UTF-8
838- LC_ALL : C.UTF-8
839837 TESTCONTAINERS_CHECKS_DISABLE : " true"
840838 TESTCONTAINERS_RYUK_DISABLED : " true"
841839 TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX : " registry.ddbuild.io/images/mirror/"
Original file line number Diff line number Diff line change 11package datadog.trace.api.git
22
3+ import static java.nio.charset.StandardCharsets.UTF_16
4+ import static java.nio.charset.StandardCharsets.UTF_8
35
46import spock.lang.Specification
57
6- import java.nio.charset.StandardCharsets
7-
88class RawParseUtilsTest extends Specification {
99
1010 def " test decode no fallback" () {
1111 setup :
12- def str = new String (" some-string" . getBytes(), StandardCharsets . UTF_16 )
13- def encoded = str. bytes
12+ def str = new String (" some-string" . getBytes(), UTF_16 )
13+ def encoded = str. getBytes( UTF_8 )
1414
1515 when :
1616 def decoded = RawParseUtils . decode(encoded, 0 , encoded. length)
@@ -21,8 +21,8 @@ class RawParseUtilsTest extends Specification {
2121
2222 def " test extract binary string" () {
2323 setup :
24- def str = new String (" some-string" . getBytes(), StandardCharsets . UTF_8 )
25- def encoded = str. bytes
24+ def str = new String (" some-string" . getBytes(), UTF_8 )
25+ def encoded = str. getBytes( UTF_8 )
2626
2727 when :
2828 def decoded = RawParseUtils . extractBinaryString(encoded, 0 , encoded. length)
You can’t perform that action at this time.
0 commit comments