Skip to content

Commit 2d54ec9

Browse files
Cleanups
Add missing copyright headers Remove unnecessary imports Upgrade to Gradle 7.1
1 parent 89051bd commit 2d54ec9

17 files changed

+55
-17
lines changed

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/QuickStylesPanel.java

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,35 @@
1-
/**
1+
/*
2+
* Copyright (c) 2005-2021 Radiance Kirill Grouchnikov. All Rights Reserved.
23
*
4+
* Redistribution and use in source and binary forms, with or without
5+
* modification, are permitted provided that the following conditions are met:
6+
*
7+
* o Redistributions of source code must retain the above copyright notice,
8+
* this list of conditions and the following disclaimer.
9+
*
10+
* o Redistributions in binary form must reproduce the above copyright notice,
11+
* this list of conditions and the following disclaimer in the documentation
12+
* and/or other materials provided with the distribution.
13+
*
14+
* o Neither the name of the copyright holder nor the names of
15+
* its contributors may be used to endorse or promote products derived
16+
* from this software without specific prior written permission.
17+
*
18+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20+
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25+
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
329
*/
430
package org.pushingpixels.demo.flamingo.common;
531

632
import org.pushingpixels.demo.flamingo.svg.tango.transcoded.Font_x_generic;
7-
import org.pushingpixels.flamingo.api.common.CommandActionEvent;
833
import org.pushingpixels.flamingo.api.common.CommandButtonPresentationState;
934
import org.pushingpixels.flamingo.api.common.icon.DecoratedResizableIcon;
1035
import org.pushingpixels.flamingo.api.common.model.Command;

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/SamplePopupMenu.java

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
1-
/**
1+
/*
2+
* Copyright (c) 2005-2021 Radiance Kirill Grouchnikov. All Rights Reserved.
23
*
4+
* Redistribution and use in source and binary forms, with or without
5+
* modification, are permitted provided that the following conditions are met:
6+
*
7+
* o Redistributions of source code must retain the above copyright notice,
8+
* this list of conditions and the following disclaimer.
9+
*
10+
* o Redistributions in binary form must reproduce the above copyright notice,
11+
* this list of conditions and the following disclaimer in the documentation
12+
* and/or other materials provided with the distribution.
13+
*
14+
* o Neither the name of the copyright holder nor the names of
15+
* its contributors may be used to endorse or promote products derived
16+
* from this software without specific prior written permission.
17+
*
18+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
20+
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
25+
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26+
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
27+
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
28+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
329
*/
430
package org.pushingpixels.demo.flamingo.common;
531

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCircularProgress.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
import javax.swing.*;
4040
import java.awt.*;
41-
import java.awt.event.ActionEvent;
4241

4342
public class TestCircularProgress extends JFrame {
4443
public TestCircularProgress() {

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestColorSelector.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
import org.pushingpixels.demo.flamingo.LocaleSwitcher;
3333
import org.pushingpixels.demo.flamingo.svg.logo.RadianceLogo;
34-
import org.pushingpixels.flamingo.api.common.CommandActionEvent;
3534
import org.pushingpixels.flamingo.api.common.CommandButtonPresentationState;
3635
import org.pushingpixels.flamingo.api.common.JCommandButton;
3736
import org.pushingpixels.flamingo.api.common.model.ColorSelectorCommand;

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCommandButtonPanel.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
import javax.swing.*;
4343
import java.awt.*;
44-
import java.awt.event.ActionEvent;
4544
import java.util.Locale;
4645
import java.util.ResourceBundle;
4746

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCommandButtons.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.pushingpixels.demo.flamingo.SkinSwitcher;
3636
import org.pushingpixels.demo.flamingo.svg.logo.RadianceLogo;
3737
import org.pushingpixels.demo.flamingo.svg.tango.transcoded.*;
38-
import org.pushingpixels.flamingo.api.common.CommandActionEvent;
3938
import org.pushingpixels.flamingo.api.common.CommandButtonPresentationState;
4039
import org.pushingpixels.flamingo.api.common.JCommandButton;
4140
import org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon;
@@ -50,7 +49,6 @@
5049

5150
import javax.swing.*;
5251
import java.awt.*;
53-
import java.awt.event.ActionEvent;
5452
import java.text.MessageFormat;
5553
import java.text.SimpleDateFormat;
5654
import java.util.List;

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCommandButtonsAlignment.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import com.jgoodies.forms.factories.Paddings;
3434
import org.pushingpixels.demo.flamingo.svg.logo.RadianceLogo;
3535
import org.pushingpixels.demo.flamingo.svg.tango.transcoded.Edit_paste;
36-
import org.pushingpixels.flamingo.api.common.CommandActionEvent;
3736
import org.pushingpixels.flamingo.api.common.CommandButtonPresentationState;
3837
import org.pushingpixels.flamingo.api.common.model.Command;
3938
import org.pushingpixels.flamingo.api.common.model.CommandButtonPresentationModel;

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCommandButtonsNoIcon.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
import org.pushingpixels.substance.api.skin.BusinessSkin;
3737

3838
import javax.swing.*;
39-
import java.awt.event.ActionEvent;
4039

4140
public class TestCommandButtonsNoIcon extends TestCommandButtons {
4241
public TestCommandButtonsNoIcon() {

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCommandButtonsNoText.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import org.pushingpixels.substance.api.skin.BusinessSkin;
3434

3535
import javax.swing.*;
36-
import java.awt.event.ActionEvent;
3736

3837
public class TestCommandButtonsNoText extends TestCommandButtons {
3938
public TestCommandButtonsNoText() {

demos/flamingo-demo/src/main/java/org/pushingpixels/demo/flamingo/common/TestCommandToggleButtons.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import javax.swing.*;
5454
import java.awt.*;
5555
import java.awt.color.ColorSpace;
56-
import java.awt.event.ActionEvent;
5756
import java.awt.image.ColorConvertOp;
5857
import java.text.MessageFormat;
5958
import java.text.SimpleDateFormat;

0 commit comments

Comments
 (0)