diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java index 81e4ef147..075ec8396 100644 --- a/src/main/org/apache/tools/ant/Main.java +++ b/src/main/org/apache/tools/ant/Main.java @@ -887,7 +887,7 @@ public class Main implements AntMain { + " that:"); error.printStackTrace(); } - throw new BuildException(t); + throw new BuildException(t); //NOSONAR } } else if (error != null) { project.log(error.toString(), Project.MSG_ERR); diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java index cef9dda0f..b6360caa4 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java @@ -747,7 +747,7 @@ public class FTP extends Task implements FTPTaskConfig { try { ftp.changeWorkingDirectory(directory); } catch (IOException ioe) { - throw new BuildException(ioe, getLocation()); + throw new BuildException(ioe, getLocation()); //NOSONAR } } getProject().log("remote system is case sensitive : " + remoteSystemCaseSensitive, @@ -1155,7 +1155,7 @@ public class FTP extends Task implements FTPTaskConfig { Project.MSG_ERR); } finally { if (!comeback) { - throw new BuildException("could not cd back to " + dir + throw new BuildException("could not cd back to " + dir //NOSONAR + " while checking a symlink"); } } diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java index 81752b352..6cb79c833 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java @@ -648,7 +648,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror { try { ftp.changeWorkingDirectory(directory); } catch (IOException ioe) { - throw new BuildException(ioe, task.getLocation()); + throw new BuildException(ioe, task.getLocation()); //NOSONAR } } task.log("remote system is case sensitive : " @@ -1061,7 +1061,7 @@ public class FTPTaskMirrorImpl implements FTPTaskMirror { Project.MSG_ERR); } finally { if (!comeback) { - throw new BuildException("could not cd back to " + dir + throw new BuildException("could not cd back to " + dir //NOSONAR + " while checking a symlink"); } } diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java index 3a73bdf7b..146e0ffd0 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/splash/SplashTask.java @@ -262,7 +262,7 @@ public class SplashTask extends Task { // swallow if there was an error before so that // original error will be passed up if (success) { - throw new BuildException(ioe); + throw new BuildException(ioe); //NOSONAR } } }