diff --git a/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java b/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java index f16f8d524..92d2686c4 100644 --- a/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java +++ b/src/main/org/apache/tools/ant/listener/AnsiColorLogger.java @@ -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 @@ public final class AnsiColorLogger extends DefaultLogger { * 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 @@ public final class AnsiColorLogger extends DefaultLogger { /** * @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 @@ public final class AnsiColorLogger extends DefaultLogger { msg.append(END_COLOR); break; case Project.MSG_DEBUG: + // Fall through + default: msg.insert(0, debugColor); msg.append(END_COLOR); break;