commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/java/org/apache/commons/latka Latka.java
Date Sat, 29 Jun 2002 01:34:24 GMT
dion        2002/06/28 18:34:24

  Modified:    latka/src/java/org/apache/commons/latka Latka.java
  Log:
  Style violations and cleanup
  
  Revision  Changes    Path
  1.36      +5 -6      jakarta-commons/latka/src/java/org/apache/commons/latka/Latka.java
  
  Index: Latka.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/latka/src/java/org/apache/commons/latka/Latka.java,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- Latka.java	11 Apr 2002 13:54:02 -0000	1.35
  +++ Latka.java	29 Jun 2002 01:34:24 -0000	1.36
  @@ -119,14 +119,14 @@
       protected URL _reportStylesheetUrl = null;
   
       /** log4j category for logged output */
  -    protected static Category _log = 
  +    protected static final Category _log = 
                                Category.getInstance(Latka.class.getName());
   
       /** Latka configuration variables */
       protected Properties _props = LatkaProperties.getProperties();
   
       /** Message displayed to user when incorrect args provided */
  -    protected static String LATKA_USAGE = 
  +    private static final String LATKA_USAGE = 
               "\n######################\n" +
               "Latka usage:\n" +
               "  java org.apache.commons.latka.Latka \"XML_suite_URL\" " +
  @@ -160,7 +160,7 @@
   
               source = new InputSource(suite.getReader());
               if (suite.getURL() != null) {
  -            source.setSystemId(suite.getURL().toString());
  +                source.setSystemId(suite.getURL().toString());
               }
   
               SAXParserFactory factory = SAXParserFactory.newInstance();
  @@ -233,8 +233,7 @@
               }
           }
           SimpleDateFormat formatter = new SimpleDateFormat ("yyyyMMdd'-'HHmm");
  -        Date currentTime_1 = new Date();
  -        String dateString = formatter.format(currentTime_1);
  +        String dateString = formatter.format(new Date());
           File file = new File(dir, dateString + ".xml");
           FileWriter fileWriter = new FileWriter(file);
           fileWriter.write(xml);
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message