Ignore:
Timestamp:
2015-04-29T01:44:01+02:00 (6 years ago)
Author:
Don-vip
Message:

fix squid:RedundantThrowsDeclarationCheck + consistent Javadoc for exceptions

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java

    r8061 r8291  
    5454     * @param toUpdate a collection of plugin descriptions for plugins to update/download. Must not be null.
    5555     * @param title the title to display in the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}
    56      * @throws IllegalArgumentException thrown if toUpdate is null
    57      */
    58     public PluginDownloadTask(Component parent, Collection<PluginInformation> toUpdate, String title) throws IllegalArgumentException{
     56     * @throws IllegalArgumentException if toUpdate is null
     57     */
     58    public PluginDownloadTask(Component parent, Collection<PluginInformation> toUpdate, String title) {
    5959        super(parent, title == null ? "" : title, false /* don't ignore exceptions */);
    6060        CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate");
     
    6868     * @param toUpdate a collection of plugin descriptions for plugins to update/download. Must not be null.
    6969     * @param title the title to display in the {@link org.openstreetmap.josm.gui.PleaseWaitDialog}
    70      * @throws IllegalArgumentException thrown if toUpdate is null
     70     * @throws IllegalArgumentException if toUpdate is null
    7171     */
    7272    public PluginDownloadTask(ProgressMonitor monitor, Collection<PluginInformation> toUpdate, String title) {
     
    8080     *
    8181     * @param toUpdate the collection of plugins to update. Must not be null.
    82      * @throws IllegalArgumentException thrown if toUpdate is null
    83      */
    84     public void setPluginsToDownload(Collection<PluginInformation> toUpdate) throws IllegalArgumentException{
     82     * @throws IllegalArgumentException if toUpdate is null
     83     */
     84    public void setPluginsToDownload(Collection<PluginInformation> toUpdate) {
    8585        CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate");
    8686        this.toUpdate.clear();
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r8126 r8291  
    883883     * @param monitor the progress monitor. Defaults to {@link NullProgressMonitor#INSTANCE} if null.
    884884     * @param displayErrMsg if {@code true}, a blocking error message is displayed in case of I/O exception.
    885      * @throws IllegalArgumentException thrown if plugins is null
     885     * @throws IllegalArgumentException if plugins is null
    886886     */
    887887    public static Collection<PluginInformation> updatePlugins(Component parent,
    888             Collection<PluginInformation> pluginsWanted, ProgressMonitor monitor, boolean displayErrMsg)
    889             throws IllegalArgumentException {
     888            Collection<PluginInformation> pluginsWanted, ProgressMonitor monitor, boolean displayErrMsg) {
    890889        Collection<PluginInformation> plugins = null;
    891890        pluginDownloadTask = null;
  • trunk/src/org/openstreetmap/josm/plugins/PluginInformation.java

    r8101 r8291  
    106106     * @param file the plugin jar
    107107     * @param name the plugin name
    108      * @throws PluginException thrown if reading the manifest file fails
     108     * @throws PluginException if reading the manifest file fails
    109109     */
    110110    public PluginInformation(File file, String name) throws PluginException {
     
    135135     * @param name the plugin name
    136136     * @param url the download URL for the plugin
    137      * @throws PluginException thrown if the plugin information can't be read from the input stream
     137     * @throws PluginException if the plugin information can't be read from the input stream
    138138     */
    139139    public PluginInformation(InputStream manifestStream, String name, String url) throws PluginException {
  • trunk/src/org/openstreetmap/josm/plugins/PluginListParser.java

    r7082 r8291  
    5555     * @param in the input stream from which to parse
    5656     * @return the list of plugin information objects
    57      * @throws PluginListParseException thrown if something goes wrong while parsing
     57     * @throws PluginListParseException if something goes wrong while parsing
    5858     */
    5959    public List<PluginInformation> parse(InputStream in) throws PluginListParseException{
Note: See TracChangeset for help on using the changeset viewer.