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

app/src/cc/arduino/contributions/libraries/LibraryByTypeComparator.java

Lines changed: 29 additions & 0 deletions
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;

app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java

Lines changed: 29 additions & 0 deletions
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;

app/src/cc/arduino/contributions/libraries/LibraryTypeComparator.java

Lines changed: 29 additions & 0 deletions
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;

app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java

Lines changed: 3 additions & 2 deletions
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;

app/src/cc/arduino/contributions/libraries/ui/DropdownLibraryOfTypeItem.java

Lines changed: 0 additions & 1 deletion
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;

app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java

Lines changed: 1 addition & 2 deletions
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;

app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java

Lines changed: 5 additions & 4 deletions
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

app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java

Lines changed: 2 additions & 1 deletion
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;

app/src/cc/arduino/contributions/packages/ui/ContributionIndexTableModel.java

Lines changed: 1 addition & 0 deletions
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;

app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)