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/listener AnsiColorLogger.java
Date Fri, 11 Mar 2005 11:14:48 GMT
peterreilly    2005/03/11 03:14:47

  Modified:    src/main/org/apache/tools/ant/listener AnsiColorLogger.java
  Log:
  checkstyle- no need to have final methods in a final class + falltru
  
  Revision  Changes    Path
  1.14      +5 -3      ant/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java
  
  Index: AnsiColorLogger.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AnsiColorLogger.java	15 Nov 2004 14:52:26 -0000	1.13
  +++ AnsiColorLogger.java	11 Mar 2005 11:14:47 -0000	1.14
  @@ -1,5 +1,5 @@
   /*
  - * Copyright  2002,2004 The Apache Software Foundation
  + * Copyright  2002,2004-2005 The Apache Software Foundation
    *
    *  Licensed under the Apache License, Version 2.0 (the "License");
    *  you may not use this file except in compliance with the License.
  @@ -144,7 +144,7 @@
        * Set the colors to use from a property file specified by the
        * special ant property ant.logger.defaults
        */
  -    private final void setColors() {
  +    private void setColors() {
           String userColorFile = System.getProperty("ant.logger.defaults");
           String systemColorFile =
               "/org/apache/tools/ant/listener/defaults.properties";
  @@ -200,7 +200,7 @@
       /**
        * @see DefaultLogger#printMessage
        */
  -    protected final void printMessage(final String message,
  +    protected void printMessage(final String message,
                                         final PrintStream stream,
                                         final int priority) {
           if (message != null && stream != null) {
  @@ -228,6 +228,8 @@
                       msg.append(END_COLOR);
                       break;
                   case Project.MSG_DEBUG:
  +                    // Fall through
  +                default:
                       msg.insert(0, debugColor);
                       msg.append(END_COLOR);
                       break;
  
  
  

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


Mime
View raw message