Skip to content

Commit

Permalink
Applied multiple IDEA inspection suggestions concerning unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Nov 7, 2023
1 parent 4f410bb commit 15faeb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -3896,7 +3896,7 @@ private <V> V run(final Callable<V> callable) {

try {
synchronized (this) {
this.wait();
wait();
}

if (result instanceof final Throwable throwable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public int getScrollClicks() {
}

public void init() {
this.hapticFeedback = main.isHapticFeedback();
hapticFeedback = main.isHapticFeedback();

final var presentControllers = Main.getPresentControllers();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ private CheckboxJList(final E[] listData) {

@Override
public void setSelectionInterval(final int index0, final int index1) {
if (super.isSelectedIndex(index0)) {
super.removeSelectionInterval(index0, index1);
if (isSelectedIndex(index0)) {
removeSelectionInterval(index0, index1);
} else {
super.addSelectionInterval(index0, index1);
addSelectionInterval(index0, index1);
}
}
});
Expand Down

0 comments on commit 15faeb6

Please sign in to comment.