Skip to content

Commit 2f4485d

Browse files
author
Federico Fissore
committed
Added missing license headers, added missing blank line between license header
and package declaration, organized imports
1 parent 3153d0b commit 2f4485d

File tree

58 files changed

+590
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+590
-53
lines changed

Diff for: app/src/cc/arduino/contributions/libraries/LibraryByTypeComparator.java

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
/*
2+
* This file is part of Arduino.
3+
*
4+
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
5+
*
6+
* Arduino is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation; either version 2 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*
20+
* As a special exception, you may use this file as part of a free software
21+
* library without restriction. Specifically, if other files instantiate
22+
* templates or use macros or inline functions from this file, or you compile
23+
* this file and link it with other files to produce an executable, this
24+
* file does not by itself cause the resulting executable to be covered by
25+
* the GNU General Public License. This exception does not however
26+
* invalidate any other reasons why the executable file might be covered by
27+
* the GNU General Public License.
28+
*/
29+
130
package cc.arduino.contributions.libraries;
231

332
import java.util.Comparator;

Diff for: app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
/*
2+
* This file is part of Arduino.
3+
*
4+
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
5+
*
6+
* Arduino is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation; either version 2 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*
20+
* As a special exception, you may use this file as part of a free software
21+
* library without restriction. Specifically, if other files instantiate
22+
* templates or use macros or inline functions from this file, or you compile
23+
* this file and link it with other files to produce an executable, this
24+
* file does not by itself cause the resulting executable to be covered by
25+
* the GNU General Public License. This exception does not however
26+
* invalidate any other reasons why the executable file might be covered by
27+
* the GNU General Public License.
28+
*/
29+
130
package cc.arduino.contributions.libraries;
231

332
import java.util.Comparator;

Diff for: app/src/cc/arduino/contributions/libraries/LibraryTypeComparator.java

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
/*
2+
* This file is part of Arduino.
3+
*
4+
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
5+
*
6+
* Arduino is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation; either version 2 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*
20+
* As a special exception, you may use this file as part of a free software
21+
* library without restriction. Specifically, if other files instantiate
22+
* templates or use macros or inline functions from this file, or you compile
23+
* this file and link it with other files to produce an executable, this
24+
* file does not by itself cause the resulting executable to be covered by
25+
* the GNU General Public License. This exception does not however
26+
* invalidate any other reasons why the executable file might be covered by
27+
* the GNU General Public License.
28+
*/
29+
130
package cc.arduino.contributions.libraries;
231

332
import java.util.Arrays;

Diff for: app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.libraries.ui;
3031

32+
import cc.arduino.contributions.DownloadableContribution;
33+
import cc.arduino.contributions.DownloadableContributionVersionComparator;
3134
import cc.arduino.contributions.VersionComparator;
3235
import cc.arduino.contributions.filters.BuiltInPredicate;
3336
import cc.arduino.contributions.filters.InstalledPredicate;
3437
import cc.arduino.contributions.libraries.ContributedLibrary;
3538
import cc.arduino.contributions.libraries.filters.OnlyUpstreamReleasePredicate;
36-
import cc.arduino.contributions.DownloadableContribution;
37-
import cc.arduino.contributions.DownloadableContributionVersionComparator;
3839
import cc.arduino.contributions.ui.InstallerTableCell;
3940
import cc.arduino.contributions.ui.listeners.DelegatingKeyListener;
4041
import cc.arduino.utils.ReverseComparator;

Diff for: app/src/cc/arduino/contributions/libraries/ui/DropdownLibraryOfTypeItem.java

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
package cc.arduino.contributions.libraries.ui;
3131

3232
import cc.arduino.contributions.libraries.ContributedLibrary;
33-
import cc.arduino.contributions.libraries.filters.CategoryPredicate;
3433
import cc.arduino.contributions.libraries.filters.TypePredicate;
3534
import cc.arduino.contributions.ui.DropdownItem;
3635
import com.google.common.base.Predicate;

Diff for: app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.libraries.ui;
3031

3132
import cc.arduino.contributions.DownloadableContributionBuiltInAtTheBottomComparator;
32-
import cc.arduino.contributions.VersionHelper;
3333
import cc.arduino.contributions.filters.InstalledPredicate;
3434
import cc.arduino.contributions.libraries.ContributedLibrary;
3535
import cc.arduino.contributions.libraries.LibrariesIndexer;
3636
import cc.arduino.contributions.packages.ContributedPlatform;
3737
import cc.arduino.contributions.ui.FilteredAbstractTableModel;
38-
import com.github.zafarkhaja.semver.Version;
3938
import com.google.common.base.Predicate;
4039
import com.google.common.base.Predicates;
4140
import com.google.common.collect.Collections2;

Diff for: app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,26 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.libraries.ui;
3031

32+
import cc.arduino.contributions.DownloadableContribution;
3133
import cc.arduino.contributions.libraries.ContributedLibrary;
3234
import cc.arduino.contributions.libraries.LibrariesIndexer;
3335
import cc.arduino.contributions.libraries.LibraryInstaller;
3436
import cc.arduino.contributions.libraries.LibraryTypeComparator;
35-
import cc.arduino.contributions.DownloadableContribution;
36-
import cc.arduino.contributions.ui.InstallerJDialogUncaughtExceptionHandler;
3737
import cc.arduino.contributions.ui.*;
3838
import cc.arduino.utils.Progress;
3939
import com.google.common.base.Predicate;
40-
import processing.app.BaseNoGui;
4140
import processing.app.Platform;
4241

4342
import javax.swing.*;
4443
import java.awt.*;
4544
import java.awt.event.ActionEvent;
4645
import java.awt.event.ActionListener;
47-
import java.util.*;
46+
import java.util.Collection;
47+
import java.util.Collections;
48+
import java.util.LinkedList;
4849

4950
import static processing.app.I18n._;
5051

Diff for: app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,17 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.packages.ui;
3031

32+
import cc.arduino.contributions.DownloadableContribution;
3133
import cc.arduino.contributions.DownloadableContributionVersionComparator;
3234
import cc.arduino.contributions.VersionComparator;
3335
import cc.arduino.contributions.filters.BuiltInPredicate;
3436
import cc.arduino.contributions.filters.InstalledPredicate;
3537
import cc.arduino.contributions.packages.ContributedBoard;
3638
import cc.arduino.contributions.packages.ContributedHelp;
3739
import cc.arduino.contributions.packages.ContributedPlatform;
38-
import cc.arduino.contributions.DownloadableContribution;
3940
import cc.arduino.contributions.ui.InstallerTableCell;
4041
import cc.arduino.contributions.ui.listeners.DelegatingKeyListener;
4142
import cc.arduino.utils.ReverseComparator;

Diff for: app/src/cc/arduino/contributions/packages/ui/ContributionIndexTableModel.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.packages.ui;
3031

3132
import cc.arduino.contributions.DownloadableContributionBuiltInAtTheBottomComparator;

Diff for: app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.packages.ui;
3031

32+
import cc.arduino.contributions.DownloadableContribution;
3133
import cc.arduino.contributions.packages.ContributedPlatform;
3234
import cc.arduino.contributions.packages.ContributionInstaller;
3335
import cc.arduino.contributions.packages.ContributionsIndexer;
34-
import cc.arduino.contributions.DownloadableContribution;
3536
import cc.arduino.contributions.ui.*;
3637
import cc.arduino.utils.Progress;
37-
import processing.app.BaseNoGui;
3838
import processing.app.I18n;
3939
import processing.app.Platform;
4040

Diff for: app/src/cc/arduino/contributions/ui/DropdownAllItem.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
package cc.arduino.contributions.ui;
3131

32-
import cc.arduino.contributions.filters.NoopPredicate;
3332
import cc.arduino.contributions.DownloadableContribution;
33+
import cc.arduino.contributions.filters.NoopPredicate;
3434
import com.google.common.base.Predicate;
3535

3636
import static processing.app.I18n._;

Diff for: app/src/cc/arduino/contributions/ui/FilterJTextField.java

+5-7
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29-
package cc.arduino.contributions.ui;
3029

31-
import java.awt.Color;
32-
import java.awt.Font;
33-
import java.awt.event.FocusEvent;
34-
import java.awt.event.FocusListener;
30+
package cc.arduino.contributions.ui;
3531

36-
import javax.swing.JTextField;
37-
import javax.swing.UIManager;
32+
import javax.swing.*;
3833
import javax.swing.event.DocumentEvent;
3934
import javax.swing.event.DocumentListener;
35+
import java.awt.*;
36+
import java.awt.event.FocusEvent;
37+
import java.awt.event.FocusListener;
4038

4139
@SuppressWarnings("serial")
4240
public class FilterJTextField extends JTextField {

Diff for: app/src/cc/arduino/contributions/ui/FilteredAbstractTableModel.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.ui;
3031

31-
import cc.arduino.contributions.VersionComparator;
3232
import cc.arduino.contributions.DownloadableContribution;
33+
import cc.arduino.contributions.VersionComparator;
3334
import com.google.common.base.Predicate;
3435

3536
import javax.swing.table.AbstractTableModel;

Diff for: app/src/cc/arduino/contributions/ui/InstallerJDialog.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.ui;
3031

3132
import cc.arduino.contributions.ui.listeners.AbstractKeyListener;

Diff for: app/src/cc/arduino/contributions/ui/InstallerJDialogUncaughtExceptionHandler.java

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@
2929

3030
package cc.arduino.contributions.ui;
3131

32-
import cc.arduino.contributions.ui.InstallerJDialog;
33-
3432
import javax.swing.*;
3533

3634
import static processing.app.I18n._;

Diff for: app/src/cc/arduino/contributions/ui/InstallerTableCell.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions.ui;
3031

3132
import javax.swing.*;

Diff for: app/src/cc/arduino/contributions/ui/ProgressJProgressBar.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29-
package cc.arduino.contributions.ui;
3029

31-
import javax.swing.JProgressBar;
30+
package cc.arduino.contributions.ui;
3231

3332
import cc.arduino.utils.Progress;
3433

34+
import javax.swing.*;
35+
3536
@SuppressWarnings("serial")
3637
public class ProgressJProgressBar extends JProgressBar {
3738

Diff for: app/src/cc/arduino/view/preferences/Preferences.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import java.awt.event.ActionListener;
4040
import java.awt.event.WindowEvent;
4141
import java.io.File;
42-
import java.util.*;
42+
import java.util.LinkedList;
4343

4444
import static processing.app.I18n._;
4545

Diff for: arduino-core/src/cc/arduino/MyStreamPumper.java

+29
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
/*
2+
* This file is part of Arduino.
3+
*
4+
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
5+
*
6+
* Arduino is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation; either version 2 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*
20+
* As a special exception, you may use this file as part of a free software
21+
* library without restriction. Specifically, if other files instantiate
22+
* templates or use macros or inline functions from this file, or you compile
23+
* this file and link it with other files to produce an executable, this
24+
* file does not by itself cause the resulting executable to be covered by
25+
* the GNU General Public License. This exception does not however
26+
* invalidate any other reasons why the executable file might be covered by
27+
* the GNU General Public License.
28+
*/
29+
130
package cc.arduino;
231

332
import processing.app.debug.MessageConsumer;

Diff for: arduino-core/src/cc/arduino/contributions/DownloadableContribution.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions;
3031

31-
import cc.arduino.contributions.VersionHelper;
3232
import com.github.zafarkhaja.semver.Version;
3333

3434
import java.io.File;

Diff for: arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* invalidate any other reasons why the executable file might be covered by
2727
* the GNU General Public License.
2828
*/
29+
2930
package cc.arduino.contributions;
3031

3132
import cc.arduino.utils.FileHash;

0 commit comments

Comments
 (0)