Commit f32b50f
authored
[ZEPPELIN-6288] Replace Yoda conditions in InterpreterFactory with standard null checks
### What is this PR for?
In `src/main/java/org/apache/zeppelin/interpreter/InterpreterFactory.java`
The codebase contains several instances of Yoda conditions (e.g., `if (null != setting)`) which negatively impact code readability.
Additionally, the use of these checks causes inconsistencies with the existing codebase style. So, this improvement aligns the code with the standard null-check style.
### What type of PR is it?
Refactoring
### Todos
* [x] - Refactor null-check style
### What is the Jira issue?
* [ZEPPELIN-6288](https://issues.apache.org/jira/browse/ZEPPELIN-6288)
### How should this be tested?
* As this modification involves no functional changes but only coding style improvements, passing existing tests ensures there are no issues.
### 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 #5037 from hyunw9/origin/ZEPPELIN-6288.
Signed-off-by: Philipp Dallig <[email protected]>1 parent 7b26f92 commit f32b50f
File tree
1 file changed
+2
-2
lines changed- zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
0 commit comments