From 66dc7069747fe2193a836392e8f99de0805f068e Mon Sep 17 00:00:00 2001 From: weisj Date: Wed, 1 Jul 2020 18:38:31 +0200 Subject: [PATCH] Fix style violations. --- core/src/test/java/ui/ComponentDemo.java | 8 ++++---- .../darklaf/platform/windows/ui/WindowsTitlePane.java | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/core/src/test/java/ui/ComponentDemo.java b/core/src/test/java/ui/ComponentDemo.java index a1c9f10b..d8e5645b 100644 --- a/core/src/test/java/ui/ComponentDemo.java +++ b/core/src/test/java/ui/ComponentDemo.java @@ -225,7 +225,7 @@ public interface ComponentDemo { isSelected())); } }); - dev.add(new JCheckBoxMenuItem("Darklaf/System Laf"){ + dev.add(new JCheckBoxMenuItem("Darklaf/System Laf") { { setSelected(true); addActionListener(e -> { @@ -236,9 +236,9 @@ public interface ComponentDemo { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); LafManager.updateLaf(); } catch (ClassNotFoundException - | UnsupportedLookAndFeelException - | IllegalAccessException - | InstantiationException classNotFoundException) { + | UnsupportedLookAndFeelException + | IllegalAccessException + | InstantiationException classNotFoundException) { classNotFoundException.printStackTrace(); } } diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java index b316dfd6..e83baa6b 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java +++ b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java @@ -110,7 +110,6 @@ public class WindowsTitlePane extends CustomTitlePane { bundle = ResourceBundle.getBundle("com.github.weisj.darklaf.bundles.actions", getLocale()); this.decorationStyle = decorationStyle; - state = -1; oldResizable = true; installSubcomponents();