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/cvslib ChangeLogWriter.java
Date Mon, 06 Dec 2004 17:45:57 GMT
peterreilly    2004/12/06 09:45:57

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib
                        ChangeLogWriter.java
  Log:
  checkstyle changes
  Obtained from: Kevin Jackson
  
  Revision  Changes    Path
  1.16      +8 -8      ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogWriter.java
  
  Index: ChangeLogWriter.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/ChangeLogWriter.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ChangeLogWriter.java	11 Nov 2004 17:27:09 -0000	1.15
  +++ ChangeLogWriter.java	6 Dec 2004 17:45:57 -0000	1.16
  @@ -26,18 +26,18 @@
    *
    * @version $Revision$ $Date$
    */
  -class ChangeLogWriter {
  +public class ChangeLogWriter {
       /** output format for dates written to xml file */
  -    private static final SimpleDateFormat c_outputDate
  +    private static final SimpleDateFormat OUTPUT_DATE
           = new SimpleDateFormat("yyyy-MM-dd");
       /** output format for times written to xml file */
  -    private static final SimpleDateFormat c_outputTime
  +    private static final SimpleDateFormat OUTPUT_TIME
           = new SimpleDateFormat("HH:mm");
   
       static {
           TimeZone utc = TimeZone.getTimeZone("UTC");
  -        c_outputDate.setTimeZone(utc);
  -        c_outputTime.setTimeZone(utc);
  +        OUTPUT_DATE.setTimeZone(utc);
  +        OUTPUT_TIME.setTimeZone(utc);
       }
   
       /**
  @@ -69,9 +69,9 @@
        */
       private void printEntry(final PrintWriter output, final CVSEntry entry) {
           output.println("\t<entry>");
  -        output.println("\t\t<date>" + c_outputDate.format(entry.getDate())
  +        output.println("\t\t<date>" + OUTPUT_DATE.format(entry.getDate())
               + "</date>");
  -        output.println("\t\t<time>" + c_outputTime.format(entry.getDate())
  +        output.println("\t\t<time>" + OUTPUT_DATE.format(entry.getDate())
               + "</time>");
           output.println("\t\t<author><![CDATA[" + entry.getAuthor()
               + "]]></author>");
  
  
  

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


Mime
View raw message