commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r348375 - /jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java
Date Wed, 23 Nov 2005 05:03:53 GMT
Author: niallp
Date: Tue Nov 22 21:03:45 2005
New Revision: 348375

URL: http://svn.apache.org/viewcvs?rev=348375&view=rev
Log:
Rename static Comparator to make CheckStyle happy

Modified:
    jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java

Modified: jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java?rev=348375&r1=348374&r2=348375&view=diff
==============================================================================
--- jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java
(original)
+++ jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java
Tue Nov 22 21:03:45 2005
@@ -45,7 +45,7 @@
     /**
      * Compares MessageItems.
      */
-    private static final Comparator actionItemComparator = new Comparator() {
+    private static final Comparator ACTION_ITEM_COMPARATOR = new Comparator() {
         public int compare(Object o1, Object o2) {
             return ((MessageItem) o1).getOrder() - ((MessageItem) o2).getOrder();
         }
@@ -245,7 +245,7 @@
 
         // Sort MessageItems based on the initial order the
         // property/key was added to MessageList.
-        Collections.sort(actionItems, actionItemComparator);
+        Collections.sort(actionItems, ACTION_ITEM_COMPARATOR);
 
         for (Iterator i = actionItems.iterator(); i.hasNext();) {
             MessageItem ami = (MessageItem) i.next();



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


Mime
View raw message