logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1563182 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
Date Fri, 31 Jan 2014 17:20:10 GMT
Author: ggregory
Date: Fri Jan 31 17:20:10 2014
New Revision: 1563182

URL: http://svn.apache.org/r1563182
Log:
Better internal API name, especially considering Bundle is an OSGi type.

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java?rev=1563182&r1=1563181&r2=1563182&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessage.java
Fri Jan 31 17:20:10 2014
@@ -173,9 +173,9 @@ public class LocalizedMessage implements
         ResourceBundle bundle = this.bundle;
         if (bundle == null) {
             if (bundleId != null) {
-                bundle = getBundle(bundleId, locale, false);
+                bundle = getResourceBundle(bundleId, locale, false);
             } else {
-                bundle = getBundle(loggerName, locale, true);
+                bundle = getResourceBundle(loggerName, locale, true);
             }
         }
         final String messagePattern = getFormat();
@@ -215,7 +215,7 @@ public class LocalizedMessage implements
      * be located based on all or part of the package name. If false the key is expected
to be the exact bundle id.
      * @return The ResourceBundle.
      */
-    protected ResourceBundle getBundle(final String baseName, final Locale locale, final
boolean loop) {
+    protected ResourceBundle getResourceBundle(final String baseName, final Locale locale,
final boolean loop) {
         ResourceBundle rb = null;
 
         if (baseName == null) {



Mime
View raw message