You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ni...@apache.org on 2005/11/23 06:03:53 UTC
svn commit: r348375 -
/jakarta/commons/proper/resources/trunk/src/java/org/apache/commons/resources/impl/BasicMessageList.java
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