Ref: add new static analyser rule: category/java/bestpractices.xml/LiteralsFirstInComparisons

This commit is contained in:
Laurent Clouet
2024-06-07 14:35:47 +00:00
parent 824dfe4ef6
commit 0a7f1f9f1b
14 changed files with 29 additions and 28 deletions

View File

@@ -221,10 +221,10 @@ public class GuiSwing extends JFrame implements Gui {
this.showActivity(ActivityType.SETTINGS);
try {
if (client.getConfiguration().getTheme().equals("light")) {
if ("light".equals(client.getConfiguration().getTheme())) {
UIManager.setLookAndFeel(new FlatLightLaf());
}
else if (client.getConfiguration().getTheme().equals("dark")) {
else if ("dark".equals(client.getConfiguration().getTheme())) {
UIManager.setLookAndFeel(new FlatDarkLaf());
}