ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject [2/5] ant git commit: accept generic exceptions because of backwards compatibility
Date Thu, 22 Dec 2016 06:12:17 GMT
accept generic exceptions because of backwards compatibility


Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/18877234
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/18877234
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/18877234

Branch: refs/heads/1.9.x
Commit: 18877234f21782ea101f0049db2f85907e7f4c68
Parents: da943ea
Author: Stefan Bodewig <bodewig@apache.org>
Authored: Thu Dec 22 06:29:09 2016 +0100
Committer: Stefan Bodewig <bodewig@apache.org>
Committed: Thu Dec 22 06:29:09 2016 +0100

----------------------------------------------------------------------
 src/main/org/apache/tools/ant/Project.java                     | 2 +-
 src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java        | 6 +++---
 src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java        | 2 +-
 .../org/apache/tools/ant/taskdefs/optional/TraXLiaison.java    | 2 +-
 .../org/apache/tools/ant/taskdefs/optional/jlink/jlink.java    | 2 +-
 .../apache/tools/ant/taskdefs/optional/junit/JUnitTask.java    | 4 ++--
 src/main/org/apache/tools/ant/util/FileUtils.java              | 2 +-
 src/main/org/apache/tools/ant/util/StringUtils.java            | 2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/Project.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/Project.java b/src/main/org/apache/tools/ant/Project.java
index 827183d..f7d3a36 100644
--- a/src/main/org/apache/tools/ant/Project.java
+++ b/src/main/org/apache/tools/ant/Project.java
@@ -1430,7 +1430,7 @@ public class Project implements ResourceFactory {
                             "Target '" + curtarget.getName()
                             + "' failed with message '"
                             + thrownException.getMessage() + "'.", MSG_ERR);
-                        thrownException.printStackTrace(System.err);
+                        thrownException.printStackTrace(System.err); //NOSONAR
                         if (buildException == null) {
                             buildException =
                                 new BuildException(thrownException);

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
index 304995c..5976bce 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTLiaison.java
@@ -44,7 +44,7 @@ public interface XSLTLiaison {
      * @throws Exception thrown if any problems happens.
      * @since Ant 1.4
      */
-    void setStylesheet(File stylesheet) throws Exception;
+    void setStylesheet(File stylesheet) throws Exception; //NOSONAR
 
     /**
      * Add a parameter to be set during the XSL transformation.
@@ -54,7 +54,7 @@ public interface XSLTLiaison {
      * @see XSLTLiaison4#addParam(java.lang.String, java.lang.Object)
      * @since Ant 1.3
      */
-    void addParam(String name, String expression) throws Exception;
+    void addParam(String name, String expression) throws Exception; //NOSONAR
 
     /**
      * Perform the transformation of a file into another.
@@ -64,6 +64,6 @@ public interface XSLTLiaison {
      * @see #setStylesheet(File)
      * @since Ant 1.4
      */
-    void transform(File infile, File outfile) throws Exception;
+    void transform(File infile, File outfile) throws Exception; //NOSONAR
 
 } //-- XSLTLiaison

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
index 7544592..24b5bb6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
+++ b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
@@ -1380,7 +1380,7 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger
{
      * @since Ant 1.7
      */
     private void setLiaisonDynamicFileParameters(
-        final XSLTLiaison liaison, final File inFile) throws Exception {
+        final XSLTLiaison liaison, final File inFile) throws Exception { //NOSONAR
         if (fileNameParameter != null) {
             liaison.addParam(fileNameParameter, inFile.getName());
         }

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java b/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
index 10620ee..a6cd6d6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
@@ -143,7 +143,7 @@ public class TraXLiaison implements XSLTLiaison4, ErrorListener, XSLTLoggerAware
      * Constructor for TraXLiaison.
      * @throws Exception never
      */
-    public TraXLiaison() throws Exception {
+    public TraXLiaison() throws Exception { //NOSONAR
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java
index b2c5d0f..0c143cf 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java
@@ -144,7 +144,7 @@ public class jlink {
      * a rational manner to outfile.
      * @throws Exception on error.
      */
-    public void link() throws Exception {
+    public void link() throws Exception { //NOSONAR
         ZipOutputStream output = new ZipOutputStream(new FileOutputStream(outfile));
 
         if (compression) {

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
index e15e11e..edf63b6 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
@@ -702,10 +702,10 @@ public class JUnitTask extends Task {
     /**
      * Creates a new JUnitRunner and enables fork of a new Java VM.
      *
-     * @throws Exception under ??? circumstances
+     * @throws Exception never
      * @since Ant 1.2
      */
-    public JUnitTask() throws Exception {
+    public JUnitTask() throws Exception { //NOSONAR
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/util/FileUtils.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java
index c2a60ed..b22f517 100644
--- a/src/main/org/apache/tools/ant/util/FileUtils.java
+++ b/src/main/org/apache/tools/ant/util/FileUtils.java
@@ -1603,7 +1603,7 @@ public class FileUtils {
      *
      * @since Ant 1.7
      */
-    public static String getRelativePath(File fromFile, File toFile) throws Exception {
+    public static String getRelativePath(File fromFile, File toFile) throws Exception { //NOSONAR
         String fromPath = fromFile.getCanonicalPath();
         String toPath = toFile.getCanonicalPath();
 

http://git-wip-us.apache.org/repos/asf/ant/blob/18877234/src/main/org/apache/tools/ant/util/StringUtils.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/util/StringUtils.java b/src/main/org/apache/tools/ant/util/StringUtils.java
index dcae2b8..4ce9ee3 100644
--- a/src/main/org/apache/tools/ant/util/StringUtils.java
+++ b/src/main/org/apache/tools/ant/util/StringUtils.java
@@ -195,7 +195,7 @@ public final class StringUtils {
      * @throws Exception if there is a problem.
      * @since Ant 1.7
      */
-    public static long parseHumanSizes(String humanSize) throws Exception {
+    public static long parseHumanSizes(String humanSize) throws Exception { //NOSONAR
         long factor = 1L;
         char s = humanSize.charAt(0);
         switch (s) {


Mime
View raw message