Skip to content

Commit

Permalink
Simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jul 27, 2024
1 parent 357b028 commit 6728f5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/main/java/mpo/dayon/assistant/gui/AssistantFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ private JTabbedPane createTabbedPane() {
tabbedPane.addTab(translate("connection"), connectionPanel);
tabbedPane.addTab(translate("session"), sessionPanel);
tabbedPane.addTab(translate("settings"), settingsPanel);
tabbedPane.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
// must not be focusable or the key listener won't work
tabbedPane.setFocusable(false);
tabbedPane.setBorder(null);
return tabbedPane;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
int result = fileName != null ? fileName.hashCode() : 0;
result = 31 * result + (int) (fileSize ^ (fileSize >>> 32));
result = 31 * result + Long.hashCode(fileSize);
return result;
}
}

0 comments on commit 6728f5b

Please sign in to comment.