Author: mbenson
Date: Mon Jun 30 13:37:37 2008
New Revision: 672902

URL: http://svn.apache.org/viewvc?rev=672902&view=rev
Log:
trivial

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

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java?rev=672902&r1=672901&r2=672902&view=diff
==============================================================================
--- 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/AggregateTransformer.java
 Mon Jun 30 13:37:37 2008
@@ -287,21 +287,15 @@
         if (styleDir == null) {
             // If style dir is not specified we have to retrieve
             // the stylesheet from the classloader
-            URLResource stylesheet = new URLResource();
             URL stylesheetURL = getClass().getClassLoader().getResource(
                     "org/apache/tools/ant/taskdefs/optional/junit/xsl/" + 
xslname);
-            stylesheet.setURL(stylesheetURL);
-            return stylesheet;
+            return new URLResource(stylesheetURL);
         }
         // If we are here, then the style dir is here and we
         // should read the stylesheet from the filesystem
-        FileResource stylesheet = new FileResource();
-        File stylesheetFile = new File(styleDir, xslname);
-        stylesheet.setFile(stylesheetFile);
-        return stylesheet;
+        return new FileResource(new File(styleDir, xslname));
     }
 
-
     /** check for invalid options
      * @throws BuildException if something goes wrong.
      */


Reply via email to