commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1403286 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Messages.java
Date Mon, 29 Oct 2012 13:43:31 GMT
Author: ggregory
Date: Mon Oct 29 13:43:30 2012
New Revision: 1403286

URL: http://svn.apache.org/viewvc?rev=1403286&view=rev
Log:
Checkstyle: Name 'MessageMap' must match pattern '^[a-z][a-zA-Z0-9]*$'.

Modified:
    commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Messages.java

Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Messages.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Messages.java?rev=1403286&r1=1403285&r2=1403286&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Messages.java
(original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Messages.java
Mon Oct 29 13:43:30 2012
@@ -30,7 +30,7 @@ public final class Messages
     /**
      * Map from message code to MessageFormat object for the message.
      */
-    private static ConcurrentMap<String, MessageFormat> MessageMap = new ConcurrentHashMap<String,
MessageFormat>();
+    private static ConcurrentMap<String, MessageFormat> messageMap = new ConcurrentHashMap<String,
MessageFormat>();
     private static final ResourceBundle RESOURCES = new CombinedResources("org.apache.commons.vfs2.Resources");
 
     private Messages()
@@ -97,7 +97,7 @@ public final class Messages
         throws MissingResourceException
     {
         // Check if the message is cached
-        MessageFormat msg = MessageMap.get(code);
+        MessageFormat msg = messageMap.get(code);
         if (msg != null)
         {
             return msg;
@@ -105,7 +105,7 @@ public final class Messages
 
         final String msgText = RESOURCES.getString(code);
         msg = new MessageFormat(msgText);
-        MessageMap.putIfAbsent(code, msg);
-        return MessageMap.get(code);
+        messageMap.putIfAbsent(code, msg);
+        return messageMap.get(code);
     }
 }



Mime
View raw message