From 2f4485d06b2879477ff8c5916d2ab3818212ff68 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Fri, 12 Jun 2015 09:52:23 +0200 Subject: [PATCH] Added missing license headers, added missing blank line between license header and package declaration, organized imports --- .../libraries/LibraryByTypeComparator.java | 29 +++++++++++++++++++ .../LibraryOfSameTypeComparator.java | 29 +++++++++++++++++++ .../libraries/LibraryTypeComparator.java | 29 +++++++++++++++++++ .../ui/ContributedLibraryTableCell.java | 5 ++-- .../ui/DropdownLibraryOfTypeItem.java | 1 - .../ui/LibrariesIndexTableModel.java | 3 +- .../libraries/ui/LibraryManagerUI.java | 9 +++--- .../ui/ContributedPlatformTableCell.java | 3 +- .../ui/ContributionIndexTableModel.java | 1 + .../packages/ui/ContributionManagerUI.java | 4 +-- .../contributions/ui/DropdownAllItem.java | 2 +- .../contributions/ui/FilterJTextField.java | 12 ++++---- .../ui/FilteredAbstractTableModel.java | 3 +- .../contributions/ui/InstallerJDialog.java | 1 + ...tallerJDialogUncaughtExceptionHandler.java | 2 -- .../contributions/ui/InstallerTableCell.java | 1 + .../ui/ProgressJProgressBar.java | 5 ++-- .../arduino/view/preferences/Preferences.java | 2 +- .../src/cc/arduino/MyStreamPumper.java | 29 +++++++++++++++++++ .../DownloadableContribution.java | 2 +- .../DownloadableContributionsDownloader.java | 1 + .../contributions/GZippedJsonDownloader.java | 29 +++++++++++++++++++ .../arduino/contributions/JsonDownloader.java | 29 +++++++++++++++++++ .../SignatureVerificationFailedException.java | 29 +++++++++++++++++++ .../contributions/VersionComparator.java | 1 + .../libraries/ContributedLibrary.java | 1 + .../ContributedLibraryReference.java | 1 + .../libraries/LibrariesIndexer.java | 3 +- .../libraries/LibraryInstaller.java | 1 + .../filters/LibraryInstalledInsideCore.java | 29 +++++++++++++++++++ .../contributions/packages/Constants.java | 29 +++++++++++++++++++ .../packages/ContributedBoard.java | 1 + .../packages/ContributedHelp.java | 29 +++++++++++++++++++ .../packages/ContributedPackage.java | 9 +++--- .../packages/ContributedPlatform.java | 1 + .../packages/ContributedTargetPackage.java | 7 +++-- .../packages/ContributedTargetPlatform.java | 5 ++-- .../packages/ContributedTool.java | 1 + .../packages/ContributedToolReference.java | 1 + .../packages/ContributionInstaller.java | 1 + .../packages/ContributionsIndex.java | 1 + .../packages/ContributionsIndexer.java | 1 + ...HostDependentDownloadableContribution.java | 1 + .../packages/PackageIndexFilenameFilter.java | 29 +++++++++++++++++++ .../TestPackageIndexFilenameFilter.java | 29 +++++++++++++++++++ .../arduino/files/DeleteFilesOnShutdown.java | 29 +++++++++++++++++++ .../packages/discoverers/SerialDiscovery.java | 2 -- .../packages/ssh/NoInteractionUserInfo.java | 29 +++++++++++++++++++ .../packages/ssh/SSHClientSetupChainRing.java | 29 +++++++++++++++++++ .../packages/ssh/SSHConfigFileSetup.java | 29 +++++++++++++++++++ .../cc/arduino/packages/ssh/SSHPwdSetup.java | 29 +++++++++++++++++++ .../packages/uploaders/SerialUploader.java | 20 +++++-------- .../cc/arduino/utils/ArchiveExtractor.java | 1 + .../src/cc/arduino/utils/FileHash.java | 1 + .../cc/arduino/utils/MultiStepProgress.java | 1 + .../src/cc/arduino/utils/Progress.java | 1 + .../cc/arduino/utils/ReverseComparator.java | 29 +++++++++++++++++++ .../arduino/utils/network/FileDownloader.java | 2 +- 58 files changed, 590 insertions(+), 53 deletions(-) diff --git a/app/src/cc/arduino/contributions/libraries/LibraryByTypeComparator.java b/app/src/cc/arduino/contributions/libraries/LibraryByTypeComparator.java index 55e33e232..dd11773c8 100644 --- a/app/src/cc/arduino/contributions/libraries/LibraryByTypeComparator.java +++ b/app/src/cc/arduino/contributions/libraries/LibraryByTypeComparator.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.libraries; import java.util.Comparator; diff --git a/app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java b/app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java index ac4033907..4a87e8bd0 100644 --- a/app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java +++ b/app/src/cc/arduino/contributions/libraries/LibraryOfSameTypeComparator.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.libraries; import java.util.Comparator; diff --git a/app/src/cc/arduino/contributions/libraries/LibraryTypeComparator.java b/app/src/cc/arduino/contributions/libraries/LibraryTypeComparator.java index 3be77b065..1ac61983c 100644 --- a/app/src/cc/arduino/contributions/libraries/LibraryTypeComparator.java +++ b/app/src/cc/arduino/contributions/libraries/LibraryTypeComparator.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.libraries; import java.util.Arrays; diff --git a/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java b/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java index ddd5fe5f7..8541fdf91 100644 --- a/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java +++ b/app/src/cc/arduino/contributions/libraries/ui/ContributedLibraryTableCell.java @@ -26,15 +26,16 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries.ui; +import cc.arduino.contributions.DownloadableContribution; +import cc.arduino.contributions.DownloadableContributionVersionComparator; import cc.arduino.contributions.VersionComparator; import cc.arduino.contributions.filters.BuiltInPredicate; import cc.arduino.contributions.filters.InstalledPredicate; import cc.arduino.contributions.libraries.ContributedLibrary; import cc.arduino.contributions.libraries.filters.OnlyUpstreamReleasePredicate; -import cc.arduino.contributions.DownloadableContribution; -import cc.arduino.contributions.DownloadableContributionVersionComparator; import cc.arduino.contributions.ui.InstallerTableCell; import cc.arduino.contributions.ui.listeners.DelegatingKeyListener; import cc.arduino.utils.ReverseComparator; diff --git a/app/src/cc/arduino/contributions/libraries/ui/DropdownLibraryOfTypeItem.java b/app/src/cc/arduino/contributions/libraries/ui/DropdownLibraryOfTypeItem.java index 02c9013be..096d3dc91 100644 --- a/app/src/cc/arduino/contributions/libraries/ui/DropdownLibraryOfTypeItem.java +++ b/app/src/cc/arduino/contributions/libraries/ui/DropdownLibraryOfTypeItem.java @@ -30,7 +30,6 @@ package cc.arduino.contributions.libraries.ui; import cc.arduino.contributions.libraries.ContributedLibrary; -import cc.arduino.contributions.libraries.filters.CategoryPredicate; import cc.arduino.contributions.libraries.filters.TypePredicate; import cc.arduino.contributions.ui.DropdownItem; import com.google.common.base.Predicate; diff --git a/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java b/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java index d5b50f66f..6f3ad099f 100644 --- a/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java +++ b/app/src/cc/arduino/contributions/libraries/ui/LibrariesIndexTableModel.java @@ -26,16 +26,15 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries.ui; import cc.arduino.contributions.DownloadableContributionBuiltInAtTheBottomComparator; -import cc.arduino.contributions.VersionHelper; import cc.arduino.contributions.filters.InstalledPredicate; import cc.arduino.contributions.libraries.ContributedLibrary; import cc.arduino.contributions.libraries.LibrariesIndexer; import cc.arduino.contributions.packages.ContributedPlatform; import cc.arduino.contributions.ui.FilteredAbstractTableModel; -import com.github.zafarkhaja.semver.Version; import com.google.common.base.Predicate; import com.google.common.base.Predicates; import com.google.common.collect.Collections2; diff --git a/app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java b/app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java index db178f1ed..782d844e8 100644 --- a/app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java +++ b/app/src/cc/arduino/contributions/libraries/ui/LibraryManagerUI.java @@ -26,25 +26,26 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries.ui; +import cc.arduino.contributions.DownloadableContribution; import cc.arduino.contributions.libraries.ContributedLibrary; import cc.arduino.contributions.libraries.LibrariesIndexer; import cc.arduino.contributions.libraries.LibraryInstaller; import cc.arduino.contributions.libraries.LibraryTypeComparator; -import cc.arduino.contributions.DownloadableContribution; -import cc.arduino.contributions.ui.InstallerJDialogUncaughtExceptionHandler; import cc.arduino.contributions.ui.*; import cc.arduino.utils.Progress; import com.google.common.base.Predicate; -import processing.app.BaseNoGui; import processing.app.Platform; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.util.*; +import java.util.Collection; +import java.util.Collections; +import java.util.LinkedList; import static processing.app.I18n._; diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java index 552a8dbf5..2ac5286a7 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributedPlatformTableCell.java @@ -26,8 +26,10 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages.ui; +import cc.arduino.contributions.DownloadableContribution; import cc.arduino.contributions.DownloadableContributionVersionComparator; import cc.arduino.contributions.VersionComparator; import cc.arduino.contributions.filters.BuiltInPredicate; @@ -35,7 +37,6 @@ import cc.arduino.contributions.filters.InstalledPredicate; import cc.arduino.contributions.packages.ContributedBoard; import cc.arduino.contributions.packages.ContributedHelp; import cc.arduino.contributions.packages.ContributedPlatform; -import cc.arduino.contributions.DownloadableContribution; import cc.arduino.contributions.ui.InstallerTableCell; import cc.arduino.contributions.ui.listeners.DelegatingKeyListener; import cc.arduino.utils.ReverseComparator; diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributionIndexTableModel.java b/app/src/cc/arduino/contributions/packages/ui/ContributionIndexTableModel.java index 25c1506d4..e0d95d5b3 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributionIndexTableModel.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributionIndexTableModel.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages.ui; import cc.arduino.contributions.DownloadableContributionBuiltInAtTheBottomComparator; diff --git a/app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java b/app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java index 6c32b2093..236affbf0 100644 --- a/app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java +++ b/app/src/cc/arduino/contributions/packages/ui/ContributionManagerUI.java @@ -26,15 +26,15 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages.ui; +import cc.arduino.contributions.DownloadableContribution; import cc.arduino.contributions.packages.ContributedPlatform; import cc.arduino.contributions.packages.ContributionInstaller; import cc.arduino.contributions.packages.ContributionsIndexer; -import cc.arduino.contributions.DownloadableContribution; import cc.arduino.contributions.ui.*; import cc.arduino.utils.Progress; -import processing.app.BaseNoGui; import processing.app.I18n; import processing.app.Platform; diff --git a/app/src/cc/arduino/contributions/ui/DropdownAllItem.java b/app/src/cc/arduino/contributions/ui/DropdownAllItem.java index 935138e02..b92eb4fc4 100644 --- a/app/src/cc/arduino/contributions/ui/DropdownAllItem.java +++ b/app/src/cc/arduino/contributions/ui/DropdownAllItem.java @@ -29,8 +29,8 @@ package cc.arduino.contributions.ui; -import cc.arduino.contributions.filters.NoopPredicate; import cc.arduino.contributions.DownloadableContribution; +import cc.arduino.contributions.filters.NoopPredicate; import com.google.common.base.Predicate; import static processing.app.I18n._; diff --git a/app/src/cc/arduino/contributions/ui/FilterJTextField.java b/app/src/cc/arduino/contributions/ui/FilterJTextField.java index a9e7cefee..8947587f5 100644 --- a/app/src/cc/arduino/contributions/ui/FilterJTextField.java +++ b/app/src/cc/arduino/contributions/ui/FilterJTextField.java @@ -26,17 +26,15 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.ui; -import java.awt.Color; -import java.awt.Font; -import java.awt.event.FocusEvent; -import java.awt.event.FocusListener; - -import javax.swing.JTextField; -import javax.swing.UIManager; +import javax.swing.*; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; +import java.awt.*; +import java.awt.event.FocusEvent; +import java.awt.event.FocusListener; @SuppressWarnings("serial") public class FilterJTextField extends JTextField { diff --git a/app/src/cc/arduino/contributions/ui/FilteredAbstractTableModel.java b/app/src/cc/arduino/contributions/ui/FilteredAbstractTableModel.java index 0b799b119..cb444b0ac 100644 --- a/app/src/cc/arduino/contributions/ui/FilteredAbstractTableModel.java +++ b/app/src/cc/arduino/contributions/ui/FilteredAbstractTableModel.java @@ -26,10 +26,11 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.ui; -import cc.arduino.contributions.VersionComparator; import cc.arduino.contributions.DownloadableContribution; +import cc.arduino.contributions.VersionComparator; import com.google.common.base.Predicate; import javax.swing.table.AbstractTableModel; diff --git a/app/src/cc/arduino/contributions/ui/InstallerJDialog.java b/app/src/cc/arduino/contributions/ui/InstallerJDialog.java index d7afe5172..c2b39c4e7 100644 --- a/app/src/cc/arduino/contributions/ui/InstallerJDialog.java +++ b/app/src/cc/arduino/contributions/ui/InstallerJDialog.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.ui; import cc.arduino.contributions.ui.listeners.AbstractKeyListener; diff --git a/app/src/cc/arduino/contributions/ui/InstallerJDialogUncaughtExceptionHandler.java b/app/src/cc/arduino/contributions/ui/InstallerJDialogUncaughtExceptionHandler.java index 2c8e43dd0..9e7247c09 100644 --- a/app/src/cc/arduino/contributions/ui/InstallerJDialogUncaughtExceptionHandler.java +++ b/app/src/cc/arduino/contributions/ui/InstallerJDialogUncaughtExceptionHandler.java @@ -29,8 +29,6 @@ package cc.arduino.contributions.ui; -import cc.arduino.contributions.ui.InstallerJDialog; - import javax.swing.*; import static processing.app.I18n._; diff --git a/app/src/cc/arduino/contributions/ui/InstallerTableCell.java b/app/src/cc/arduino/contributions/ui/InstallerTableCell.java index eb0187632..e45655d2f 100644 --- a/app/src/cc/arduino/contributions/ui/InstallerTableCell.java +++ b/app/src/cc/arduino/contributions/ui/InstallerTableCell.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.ui; import javax.swing.*; diff --git a/app/src/cc/arduino/contributions/ui/ProgressJProgressBar.java b/app/src/cc/arduino/contributions/ui/ProgressJProgressBar.java index ffe43a25a..12b39742f 100644 --- a/app/src/cc/arduino/contributions/ui/ProgressJProgressBar.java +++ b/app/src/cc/arduino/contributions/ui/ProgressJProgressBar.java @@ -26,12 +26,13 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.ui; -import javax.swing.JProgressBar; - import cc.arduino.utils.Progress; +import javax.swing.*; + @SuppressWarnings("serial") public class ProgressJProgressBar extends JProgressBar { diff --git a/app/src/cc/arduino/view/preferences/Preferences.java b/app/src/cc/arduino/view/preferences/Preferences.java index 051a004ac..0489888fb 100644 --- a/app/src/cc/arduino/view/preferences/Preferences.java +++ b/app/src/cc/arduino/view/preferences/Preferences.java @@ -39,7 +39,7 @@ import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowEvent; import java.io.File; -import java.util.*; +import java.util.LinkedList; import static processing.app.I18n._; diff --git a/arduino-core/src/cc/arduino/MyStreamPumper.java b/arduino-core/src/cc/arduino/MyStreamPumper.java index dcc0d73c1..003fad07c 100644 --- a/arduino-core/src/cc/arduino/MyStreamPumper.java +++ b/arduino-core/src/cc/arduino/MyStreamPumper.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino; import processing.app.debug.MessageConsumer; diff --git a/arduino-core/src/cc/arduino/contributions/DownloadableContribution.java b/arduino-core/src/cc/arduino/contributions/DownloadableContribution.java index 2b78bc765..a51b5f0eb 100644 --- a/arduino-core/src/cc/arduino/contributions/DownloadableContribution.java +++ b/arduino-core/src/cc/arduino/contributions/DownloadableContribution.java @@ -26,9 +26,9 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions; -import cc.arduino.contributions.VersionHelper; import com.github.zafarkhaja.semver.Version; import java.io.File; diff --git a/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java b/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java index d29d4e93c..0dfcba840 100644 --- a/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java +++ b/arduino-core/src/cc/arduino/contributions/DownloadableContributionsDownloader.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions; import cc.arduino.utils.FileHash; diff --git a/arduino-core/src/cc/arduino/contributions/GZippedJsonDownloader.java b/arduino-core/src/cc/arduino/contributions/GZippedJsonDownloader.java index 5fddd5dc8..089d20c4b 100644 --- a/arduino-core/src/cc/arduino/contributions/GZippedJsonDownloader.java +++ b/arduino-core/src/cc/arduino/contributions/GZippedJsonDownloader.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions; import cc.arduino.utils.Progress; diff --git a/arduino-core/src/cc/arduino/contributions/JsonDownloader.java b/arduino-core/src/cc/arduino/contributions/JsonDownloader.java index 5c889d486..79a9b1b80 100644 --- a/arduino-core/src/cc/arduino/contributions/JsonDownloader.java +++ b/arduino-core/src/cc/arduino/contributions/JsonDownloader.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions; import cc.arduino.utils.Progress; diff --git a/arduino-core/src/cc/arduino/contributions/SignatureVerificationFailedException.java b/arduino-core/src/cc/arduino/contributions/SignatureVerificationFailedException.java index 201e7ec45..eba7fd5cd 100644 --- a/arduino-core/src/cc/arduino/contributions/SignatureVerificationFailedException.java +++ b/arduino-core/src/cc/arduino/contributions/SignatureVerificationFailedException.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions; import processing.app.I18n; diff --git a/arduino-core/src/cc/arduino/contributions/VersionComparator.java b/arduino-core/src/cc/arduino/contributions/VersionComparator.java index d4bd52a85..817f9bb5b 100644 --- a/arduino-core/src/cc/arduino/contributions/VersionComparator.java +++ b/arduino-core/src/cc/arduino/contributions/VersionComparator.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions; import com.github.zafarkhaja.semver.Version; diff --git a/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java b/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java index adb4c8b9b..9cd3755a6 100644 --- a/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java +++ b/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries; import cc.arduino.contributions.DownloadableContribution; diff --git a/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryReference.java b/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryReference.java index e04a7ec7a..f4edd5732 100644 --- a/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryReference.java +++ b/arduino-core/src/cc/arduino/contributions/libraries/ContributedLibraryReference.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries; public abstract class ContributedLibraryReference { diff --git a/arduino-core/src/cc/arduino/contributions/libraries/LibrariesIndexer.java b/arduino-core/src/cc/arduino/contributions/libraries/LibrariesIndexer.java index b66d41c5e..dd7c18196 100644 --- a/arduino-core/src/cc/arduino/contributions/libraries/LibrariesIndexer.java +++ b/arduino-core/src/cc/arduino/contributions/libraries/LibrariesIndexer.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries; import cc.arduino.contributions.libraries.filters.LibraryInstalledInsideCore; @@ -50,9 +51,9 @@ import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; -import java.util.ArrayList; import static processing.app.I18n._; diff --git a/arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java b/arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java index b50d9cb2d..7d0e8d0f5 100644 --- a/arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java +++ b/arduino-core/src/cc/arduino/contributions/libraries/LibraryInstaller.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.libraries; import cc.arduino.contributions.DownloadableContributionsDownloader; diff --git a/arduino-core/src/cc/arduino/contributions/libraries/filters/LibraryInstalledInsideCore.java b/arduino-core/src/cc/arduino/contributions/libraries/filters/LibraryInstalledInsideCore.java index cde6a54c2..6f18834f3 100644 --- a/arduino-core/src/cc/arduino/contributions/libraries/filters/LibraryInstalledInsideCore.java +++ b/arduino-core/src/cc/arduino/contributions/libraries/filters/LibraryInstalledInsideCore.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.libraries.filters; import cc.arduino.contributions.libraries.ContributedLibrary; diff --git a/arduino-core/src/cc/arduino/contributions/packages/Constants.java b/arduino-core/src/cc/arduino/contributions/packages/Constants.java index 1afbe0075..621c47f4f 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/Constants.java +++ b/arduino-core/src/cc/arduino/contributions/packages/Constants.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.packages; import java.util.Arrays; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedBoard.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedBoard.java index 9a115ad8d..7017ced5d 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedBoard.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedBoard.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; public interface ContributedBoard { diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedHelp.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedHelp.java index 1c13a2d7f..a8f998f66 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedHelp.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedHelp.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.packages; public abstract class ContributedHelp { diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedPackage.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedPackage.java index 18e8d58a5..3b2a91759 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedPackage.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedPackage.java @@ -26,9 +26,8 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ -package cc.arduino.contributions.packages; -import cc.arduino.contributions.VersionComparator; +package cc.arduino.contributions.packages; import java.util.List; @@ -80,16 +79,16 @@ public abstract class ContributedPackage { } res += "\n category : " + plat.getCategory(); res += "\n architecture : " + - plat.getArchitecture() + " " + plat.getParsedVersion() + "\n"; + plat.getArchitecture() + " " + plat.getParsedVersion() + "\n"; if (plat.getToolsDependencies() != null) for (ContributedToolReference t : plat.getToolsDependencies()) { res += " tool dep : " + t.getName() + " " + - t.getVersion() + "\n"; + t.getVersion() + "\n"; } if (plat.getBoards() != null) for (ContributedBoard board : plat.getBoards()) res += " board : " + board.getName() + - "\n"; + "\n"; } } if (getTools() != null) { diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java index 5c70ba212..0626fd851 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import cc.arduino.contributions.DownloadableContribution; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPackage.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPackage.java index 1a481a5a2..f00836ed8 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPackage.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPackage.java @@ -26,15 +26,16 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; +import processing.app.debug.TargetPackage; +import processing.app.debug.TargetPlatform; + import java.util.Collection; import java.util.HashMap; import java.util.Map; -import processing.app.debug.TargetPackage; -import processing.app.debug.TargetPlatform; - public class ContributedTargetPackage implements TargetPackage { private final String id; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPlatform.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPlatform.java index b7e1a0681..bb099bf8c 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPlatform.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedTargetPlatform.java @@ -26,14 +26,15 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ -package cc.arduino.contributions.packages; -import java.io.File; +package cc.arduino.contributions.packages; import processing.app.debug.LegacyTargetPlatform; import processing.app.debug.TargetPackage; import processing.app.debug.TargetPlatformException; +import java.io.File; + public class ContributedTargetPlatform extends LegacyTargetPlatform { public ContributedTargetPlatform(String _name, File _folder, diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedTool.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedTool.java index 50f7cee1c..229df5470 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedTool.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedTool.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import cc.arduino.contributions.DownloadableContribution; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributedToolReference.java b/arduino-core/src/cc/arduino/contributions/packages/ContributedToolReference.java index ad29445a8..7d86f234f 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributedToolReference.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributedToolReference.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import java.util.Collection; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributionInstaller.java b/arduino-core/src/cc/arduino/contributions/packages/ContributionInstaller.java index 431bc33c8..0de0dd562 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributionInstaller.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributionInstaller.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import cc.arduino.contributions.DownloadableContribution; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndex.java b/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndex.java index 54e1ee298..80d69b045 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndex.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndex.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import cc.arduino.contributions.DownloadableContributionBuiltInAtTheBottomComparator; diff --git a/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java b/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java index c058efeb8..ab29cff11 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java +++ b/arduino-core/src/cc/arduino/contributions/packages/ContributionsIndexer.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import cc.arduino.contributions.DownloadableContribution; diff --git a/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java b/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java index 07e1e8335..e63f332e7 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java +++ b/arduino-core/src/cc/arduino/contributions/packages/HostDependentDownloadableContribution.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.contributions.packages; import cc.arduino.contributions.DownloadableContribution; diff --git a/arduino-core/src/cc/arduino/contributions/packages/PackageIndexFilenameFilter.java b/arduino-core/src/cc/arduino/contributions/packages/PackageIndexFilenameFilter.java index 61e7c2663..bfc016750 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/PackageIndexFilenameFilter.java +++ b/arduino-core/src/cc/arduino/contributions/packages/PackageIndexFilenameFilter.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.packages; import java.io.File; diff --git a/arduino-core/src/cc/arduino/contributions/packages/TestPackageIndexFilenameFilter.java b/arduino-core/src/cc/arduino/contributions/packages/TestPackageIndexFilenameFilter.java index 6d134eb77..fdcd08384 100644 --- a/arduino-core/src/cc/arduino/contributions/packages/TestPackageIndexFilenameFilter.java +++ b/arduino-core/src/cc/arduino/contributions/packages/TestPackageIndexFilenameFilter.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.contributions.packages; import java.io.File; diff --git a/arduino-core/src/cc/arduino/files/DeleteFilesOnShutdown.java b/arduino-core/src/cc/arduino/files/DeleteFilesOnShutdown.java index 7d9f60139..50cca37e9 100644 --- a/arduino-core/src/cc/arduino/files/DeleteFilesOnShutdown.java +++ b/arduino-core/src/cc/arduino/files/DeleteFilesOnShutdown.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.files; import processing.app.PreferencesData; diff --git a/arduino-core/src/cc/arduino/packages/discoverers/SerialDiscovery.java b/arduino-core/src/cc/arduino/packages/discoverers/SerialDiscovery.java index 354e88da3..4a09d606f 100644 --- a/arduino-core/src/cc/arduino/packages/discoverers/SerialDiscovery.java +++ b/arduino-core/src/cc/arduino/packages/discoverers/SerialDiscovery.java @@ -37,8 +37,6 @@ import java.util.LinkedList; import java.util.List; import java.util.Timer; -import static processing.app.I18n._; - public class SerialDiscovery implements Discovery { private Timer serialBoardsListerTimer; diff --git a/arduino-core/src/cc/arduino/packages/ssh/NoInteractionUserInfo.java b/arduino-core/src/cc/arduino/packages/ssh/NoInteractionUserInfo.java index a689dc957..fb0331052 100644 --- a/arduino-core/src/cc/arduino/packages/ssh/NoInteractionUserInfo.java +++ b/arduino-core/src/cc/arduino/packages/ssh/NoInteractionUserInfo.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.packages.ssh; import com.jcraft.jsch.UserInfo; diff --git a/arduino-core/src/cc/arduino/packages/ssh/SSHClientSetupChainRing.java b/arduino-core/src/cc/arduino/packages/ssh/SSHClientSetupChainRing.java index 7590e8427..c66e7bcd8 100644 --- a/arduino-core/src/cc/arduino/packages/ssh/SSHClientSetupChainRing.java +++ b/arduino-core/src/cc/arduino/packages/ssh/SSHClientSetupChainRing.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.packages.ssh; import cc.arduino.packages.BoardPort; diff --git a/arduino-core/src/cc/arduino/packages/ssh/SSHConfigFileSetup.java b/arduino-core/src/cc/arduino/packages/ssh/SSHConfigFileSetup.java index c3432a023..be2116f8f 100644 --- a/arduino-core/src/cc/arduino/packages/ssh/SSHConfigFileSetup.java +++ b/arduino-core/src/cc/arduino/packages/ssh/SSHConfigFileSetup.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.packages.ssh; import cc.arduino.packages.BoardPort; diff --git a/arduino-core/src/cc/arduino/packages/ssh/SSHPwdSetup.java b/arduino-core/src/cc/arduino/packages/ssh/SSHPwdSetup.java index 3eedcd819..2465956cc 100644 --- a/arduino-core/src/cc/arduino/packages/ssh/SSHPwdSetup.java +++ b/arduino-core/src/cc/arduino/packages/ssh/SSHPwdSetup.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.packages.ssh; import cc.arduino.packages.BoardPort; diff --git a/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java b/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java index 26d8b3cc3..b9e7ca88c 100644 --- a/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java +++ b/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java @@ -26,23 +26,19 @@ package cc.arduino.packages.uploaders; -import static processing.app.I18n._; - -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import processing.app.BaseNoGui; -import processing.app.I18n; -import processing.app.PreferencesData; -import processing.app.Serial; -import processing.app.SerialException; +import cc.arduino.packages.Uploader; +import processing.app.*; import processing.app.debug.RunnerException; import processing.app.debug.TargetPlatform; import processing.app.helpers.OSUtils; import processing.app.helpers.PreferencesMap; import processing.app.helpers.StringReplacer; -import cc.arduino.packages.Uploader; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +import static processing.app.I18n._; public class SerialUploader extends Uploader { diff --git a/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java b/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java index 2b13dea2b..4620d46c3 100644 --- a/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java +++ b/arduino-core/src/cc/arduino/utils/ArchiveExtractor.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.utils; import org.apache.commons.compress.archivers.ArchiveEntry; diff --git a/arduino-core/src/cc/arduino/utils/FileHash.java b/arduino-core/src/cc/arduino/utils/FileHash.java index 8c658eb37..94b6ec816 100644 --- a/arduino-core/src/cc/arduino/utils/FileHash.java +++ b/arduino-core/src/cc/arduino/utils/FileHash.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.utils; import org.apache.commons.compress.utils.IOUtils; diff --git a/arduino-core/src/cc/arduino/utils/MultiStepProgress.java b/arduino-core/src/cc/arduino/utils/MultiStepProgress.java index 6846ab79a..c911b64bf 100644 --- a/arduino-core/src/cc/arduino/utils/MultiStepProgress.java +++ b/arduino-core/src/cc/arduino/utils/MultiStepProgress.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.utils; public class MultiStepProgress implements Progress { diff --git a/arduino-core/src/cc/arduino/utils/Progress.java b/arduino-core/src/cc/arduino/utils/Progress.java index cc63ff3a8..b25aa2884 100644 --- a/arduino-core/src/cc/arduino/utils/Progress.java +++ b/arduino-core/src/cc/arduino/utils/Progress.java @@ -26,6 +26,7 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.utils; public interface Progress { diff --git a/arduino-core/src/cc/arduino/utils/ReverseComparator.java b/arduino-core/src/cc/arduino/utils/ReverseComparator.java index 50c0ccd45..340821280 100644 --- a/arduino-core/src/cc/arduino/utils/ReverseComparator.java +++ b/arduino-core/src/cc/arduino/utils/ReverseComparator.java @@ -1,3 +1,32 @@ +/* + * This file is part of Arduino. + * + * Copyright 2015 Arduino LLC (http://www.arduino.cc/) + * + * Arduino is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + */ + package cc.arduino.utils; import java.util.Comparator; diff --git a/arduino-core/src/cc/arduino/utils/network/FileDownloader.java b/arduino-core/src/cc/arduino/utils/network/FileDownloader.java index 5e7127c2a..bc8596a9e 100644 --- a/arduino-core/src/cc/arduino/utils/network/FileDownloader.java +++ b/arduino-core/src/cc/arduino/utils/network/FileDownloader.java @@ -26,11 +26,11 @@ * invalidate any other reasons why the executable file might be covered by * the GNU General Public License. */ + package cc.arduino.utils.network; import org.apache.commons.codec.binary.Base64; import org.apache.commons.compress.utils.IOUtils; -import processing.app.PreferencesData; import java.io.File; import java.io.IOException;