Skip to content

Conversation

@hyunw9
Copy link
Contributor

@hyunw9 hyunw9 commented Aug 21, 2025

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

  • - Refactor null-check style

What is the Jira issue?

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

Copy link
Contributor

@Reamer Reamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Reamer Reamer merged commit f32b50f into apache:master Aug 22, 2025
15 of 18 checks passed
asf-gitbox-commits pushed a commit that referenced this pull request Aug 22, 2025
…andard 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]>
(cherry picked from commit f32b50f)
Signed-off-by: Philipp Dallig <[email protected]>
@Reamer
Copy link
Contributor

Reamer commented Aug 22, 2025

Merged into master and branch-0.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants