Commit e74ffb2
[ZEPPELIN-6246] Replace deprecated Character constructor
### What is this PR for?
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.
As-is
```
if (args.flags.contains(new Character('l'))) {
```
To-be
```
if (args.flags.contains(Character.valueOf('l'))) {
```
Also, Changed single word's type from **""** -> **''**
### What type of PR is it?
Refactoring
### Todos
* [ ] - Replace deprecated Character constructor
* [ ] - Change single word's data type
### What is the Jira issue?
* Open an issue on [Jira](https://issues.apache.org/jira/browse/ZEPPELIN-6246)
### How should this be tested?
* Strongly recommended: add automated unit tests for any new or changed behavior
* Outline any manual steps to test the PR here.
### Screenshots (if appropriate)
### Questions:
* Does the license files need to update? - No
* Is there breaking changes for older versions? - No
* Does this needs documentation? - No
Closes #4979 from hyunw9/ZEPPELIN-6246.
Signed-off-by: Philipp Dallig <philipp.dallig@gmail.com>1 parent 19b1b08 commit e74ffb2
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | | - | |
185 | | - | |
186 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
0 commit comments