logging-commits mailing list archives

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

URL: http://svn.apache.org/r1563187
Log:
Better internal names.

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

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java?rev=1563187&r1=1563186&r2=1563187&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
Fri Jan 31 17:32:26 2014
@@ -28,18 +28,18 @@ public class LocalizedMessageFactory ext
 
     private static final long serialVersionUID = 1L;
     
-    private final ResourceBundle bundle;
-    private final String bundleId;
+    private final ResourceBundle resourceBundle;
+    private final String baseName;
 
-    public LocalizedMessageFactory(final ResourceBundle bundle) {
-        this.bundle = bundle;
-        this.bundleId = null;
+    public LocalizedMessageFactory(final ResourceBundle resourceBundle) {
+        this.resourceBundle = resourceBundle;
+        this.baseName = null;
     }
 
 
-    public LocalizedMessageFactory(final String bundleId) {
-        this.bundle = null;
-        this.bundleId = bundleId;
+    public LocalizedMessageFactory(final String baseName) {
+        this.resourceBundle = null;
+        this.baseName = baseName;
     }
 
 
@@ -54,9 +54,9 @@ public class LocalizedMessageFactory ext
      */
     @Override
     public Message newMessage(final String message, final Object... params) {
-        if (bundle == null) {
-            return new LocalizedMessage(bundleId,  message, params);
+        if (resourceBundle == null) {
+            return new LocalizedMessage(baseName,  message, params);
         }
-        return new LocalizedMessage(bundle, message, params);
+        return new LocalizedMessage(resourceBundle, message, params);
     }
 }



Mime
View raw message