From feda6ebbfbe510a7572d403f581e8c5f78a6d987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20K=C3=BChne?= Date: Fri, 3 Jan 2003 10:49:41 +0000 Subject: [PATCH] made Defn a class, following the advice of Bloch --- .../com/puppycrawl/tools/checkstyle/Checker.java | 2 +- src/checkstyle/com/puppycrawl/tools/checkstyle/Defn.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/Checker.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/Checker.java index baca7a9c2..0cf386ae3 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/Checker.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/Checker.java @@ -38,7 +38,7 @@ import com.puppycrawl.tools.checkstyle.api.MessageDispatcher; * @author lkuehne */ public class Checker extends AutomaticBean - implements Defn, MessageDispatcher + implements MessageDispatcher { /** * An AuditListener that maintains the number of errors. diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/Defn.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/Defn.java index ec38a9542..cbf7adda4 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/Defn.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/Defn.java @@ -19,12 +19,12 @@ package com.puppycrawl.tools.checkstyle; /** - * Contains definitions common to the package. + * Contains constant definitions common to the package. * @author Oliver Burn **/ -public interface Defn +public final class Defn { - // TODO: Change to a class - follow the advice of Bloch. /** name of resource bundle for Checkstyle */ - String CHECKSTYLE_BUNDLE = "com.puppycrawl.tools.checkstyle.messages"; + public static final String CHECKSTYLE_BUNDLE = + "com.puppycrawl.tools.checkstyle.messages"; }