HyeonUk Kang created ZEPPELIN-6246: -------------------------------------- Summary: Replace deprecated Character constructor Key: ZEPPELIN-6246 URL: https://issues.apache.org/jira/browse/ZEPPELIN-6246 Project: Zeppelin Issue Type: Improvement Components: Interpreters Reporter: HyeonUk Kang Assignee: HyeonUk Kang
In the following file [zeppelin/file/src/main/java/org/apache/zeppelin/file/HDFSFileInterpreter.java|https://github.com/apache/zeppelin/blob/91f091e287b94295ec7f10254b4f4ac800209899/file/src/main/java/org/apache/zeppelin/file/HDFSFileInterpreter.java#L180] The Character constructor is deprecated in Java 9 and later, recommending the use of the static factory method Character.valueOf() instead. This change's objective is to update the code to use the modern recommended approach. {code:java} As-is if (args.flags.contains(new Character('l'))) { {code} {code:java} To-be if (args.flags.contains(Character.valueOf('l'))) { {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)