Skip to content

Commit

Permalink
Issue checkstyle#440: resolves AvoidConstantAsFirstOperandInCondition…
Browse files Browse the repository at this point in the history
…Check
  • Loading branch information
rnveach committed Jan 27, 2023
1 parent 84f1b61 commit 60a74c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,14 +317,14 @@ protected void okPressed() {
0);
int result = dialog.open();

if (0 == result) {
if (result == 0) {
ResolvablePropertiesDialog propsDialog = new ResolvablePropertiesDialog(getShell(),
mCheckConfig);
propsDialog.open();
return;
} else if (1 == result) {
} else if (result == 1) {
super.okPressed();
} else if (2 == result) {
} else if (result == 2) {
return;
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void widgetSelected(SelectionEvent e) {
fileDialog.setFileName(mLocation.getText());

String file = fileDialog.open();
if (null != file) {
if (file != null) {
mLocation.setText(file);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void widgetSelected(SelectionEvent e) {
fileDialog.setFileName(mTextWidget.getText());

String file = fileDialog.open();
if (null != file) {
if (file != null) {
mTextWidget.setText(file);
}
}
Expand Down

0 comments on commit 60a74c3

Please sign in to comment.