Skip to content

Commit

Permalink
Issue #440: resolves AvoidConditionInversionCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
rnveach authored and Calixte committed Jan 28, 2023
1 parent 3e27bdc commit 33f5ee6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void verifyText(VerifyEvent e) {
boolean doit = true;

// only let digits pass (and del, backspace)
if (!(e.character == SWT.DEL || e.character == SWT.BS || Character.isDigit(e.character))) {
if (e.character != SWT.DEL && e.character != SWT.BS && !Character.isDigit(e.character)) {
doit = false;
}

Expand Down

0 comments on commit 33f5ee6

Please sign in to comment.