From df7220cc9be8b333c14a55ff58f0f5f43ee713eb Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Fri, 11 Mar 2005 11:14:47 +0000 Subject: [PATCH] checkstyle- no need to have final methods in a final class + falltru git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277899 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tools/ant/listener/AnsiColorLogger.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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;