ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r549258 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
Date Wed, 20 Jun 2007 21:50:16 GMT
Author: mbenson
Date: Wed Jun 20 14:50:15 2007
New Revision: 549258

URL: http://svn.apache.org/viewvc?view=rev&rev=549258
Log:
remove unnecessary catch

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java?view=diff&rev=549258&r1=549257&r2=549258
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java Wed
Jun 20 14:50:15 2007
@@ -908,12 +908,7 @@
                 Project.MSG_WARN);
         }
 
-        CommandlineJava cmd = null;
-        try {
-            cmd = (CommandlineJava) (getCommandline().clone());
-        } catch (CloneNotSupportedException e) {
-            throw new BuildException("This shouldn't happen", e, getLocation());
-        }
+        CommandlineJava cmd = (CommandlineJava) (getCommandline().clone());
         cmd.setClassname("org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner");
         if (casesFile == null) {
             cmd.createArgument().setValue(test.getName());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message