ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/junit XalanExecutor.java
Date Thu, 06 Jan 2005 10:45:19 GMT
peterreilly    2005/01/06 02:45:19

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/junit
                        XalanExecutor.java
  Log:
  checkstyle
  
  Revision  Changes    Path
  1.19      +6 -5      ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java
  
  Index: XalanExecutor.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/junit/XalanExecutor.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- XalanExecutor.java	6 Jan 2005 10:30:05 -0000	1.18
  +++ XalanExecutor.java	6 Jan 2005 10:45:19 -0000	1.19
  @@ -33,14 +33,14 @@
    * for Xalan2/XSLTC, then for Xalan1.
    */
   abstract class XalanExecutor {
  -    private static final String pack =
  +    private static final String PACKAGE =
           "org.apache.tools.ant.taskdefs.optional.junit.";
   
       /** the transformer caller */
       protected AggregateTransformer caller;
   
       /** set the caller for this object. */
  -    private final void setCaller(AggregateTransformer caller) {
  +    private void setCaller(AggregateTransformer caller) {
           this.caller = caller;
       }
   
  @@ -51,7 +51,8 @@
               // it's all done by extension...
               return new ByteArrayOutputStream();
           } else {
  -            return new BufferedOutputStream(new FileOutputStream(new File(caller.toDir,
"junit-noframes.html")));
  +            return new BufferedOutputStream(
  +                new FileOutputStream(new File(caller.toDir, "junit-noframes.html")));
           }
       }
   
  @@ -70,12 +71,12 @@
           throws BuildException {
           XalanExecutor executor = null;
           try {
  -            Class clazz = Class.forName(pack + "Xalan2Executor");
  +            Class clazz = Class.forName(PACKAGE + "Xalan2Executor");
               executor = (XalanExecutor) clazz.newInstance();
           } catch (Exception xsltcApacheMissing) {
               caller.task.log(xsltcApacheMissing.toString());
               try {
  -                Class clazz = Class.forName(pack + "Xalan1Executor");
  +                Class clazz = Class.forName(PACKAGE + "Xalan1Executor");
                   executor = (XalanExecutor) clazz.newInstance();
               } catch (Exception xalan1Missing) {
                   caller.task.log(xalan1Missing.toString());
  
  
  

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


Mime
View raw message