hortonworks / registry

Schema Registry
Apache License 2.0
15 stars 8 forks source link

Fix compile error in JsonSerDesHandlerTest #787

Closed gkomlossi closed 1 year ago

gkomlossi commented 1 year ago
> Task :schema-registry:schema-registry-serdes:compileTestJava FAILED
/registry/schema-registry/schema-registry-serdes/src/test/java/com/hortonworks/registries/schemaregistry/serdes/json/JsonSerDesHandlerTest.java:91: error: no suitable method found for toString(Charset)
      String serializedAsString = outputStream.toString(StandardCharsets.UTF_8);
                                              ^
    method ByteArrayOutputStream.toString(String) is not applicable
      (argument mismatch; Charset cannot be converted to String)
    method ByteArrayOutputStream.toString(int) is not applicable
      (argument mismatch; Charset cannot be converted to int)