Browse Source

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
master
Peter Reilly 20 years ago
parent
commit
df7220cc9b
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      src/main/org/apache/tools/ant/listener/AnsiColorLogger.java

+ 5
- 3
src/main/org/apache/tools/ant/listener/AnsiColorLogger.java View File

@@ -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;


Loading…
Cancel
Save