xiedeyantu commented on code in PR #4341:
URL: https://github.com/apache/calcite/pull/4341#discussion_r2063327679
##########
plus/src/main/java/org/apache/calcite/chinook/CalciteConnectionProvider.java:
##########
@@ -52,7 +52,7 @@ private String provideSchema() throws IOException {
final InputStream stream =
getClass().getResourceAsStream("/chinook/chinook.json");
requireNonNull(stream, "stream");
- return CharStreams.toString(new InputStreamReader(stream, Charsets.UTF_8));
+ return CharStreams.toString(new InputStreamReader(stream,
StandardCharsets.UTF_8));
Review Comment:
CalciteConnectionProvider.java:55: warning: [deprecation] UTF_8 in
com.google.common.base.Charsets has been deprecated return
CharStreams.toString(new InputStreamReader(stream, Charsets.UTF_8)); ^ error:
warnings found and -Werror specified error: warnings found and -Werror specified
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]