Ref: add new static analyser rule: category/java/bestpractices.xml/LiteralsFirstInComparisons
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user