logging-commits mailing list archives

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

URL: http://svn.apache.org/r1563185
Log:
Better 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=1563185&r1=1563184&r2=1563185&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:24:28 2014
@@ -39,7 +39,7 @@ public class LocalizedMessage implements
 
     private String baseName;
 
-    private transient ResourceBundle bundle;
+    private transient ResourceBundle resourceBundle;
 
     private final Locale locale;
 
@@ -75,7 +75,7 @@ public class LocalizedMessage implements
         this.argArray = arguments;
         this.throwable = null;
         this.baseName = baseName;
-        this.bundle = null;
+        this.resourceBundle = null;
         this.locale = locale;
     }
 
@@ -85,7 +85,7 @@ public class LocalizedMessage implements
         this.argArray = arguments;
         this.throwable = null;
         this.baseName = null;
-        this.bundle = bundle;
+        this.resourceBundle = bundle;
         this.locale = locale;
     }
 
@@ -170,7 +170,7 @@ public class LocalizedMessage implements
         if (formattedMessage != null) {
             return formattedMessage;
         }
-        ResourceBundle bundle = this.bundle;
+        ResourceBundle bundle = this.resourceBundle;
         if (bundle == null) {
             if (baseName != null) {
                 bundle = getResourceBundle(baseName, locale, false);
@@ -277,7 +277,7 @@ public class LocalizedMessage implements
             stringArgs[i] = in.readUTF();
         }
         logger = StatusLogger.getLogger();
-        bundle = null;
+        resourceBundle = null;
         argArray = null;
     }
 }



Mime
View raw message