You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2017/06/25 19:35:35 UTC

logging-log4j2 git commit: Fix typo: 'username' -> 'userName'

Repository: logging-log4j2
Updated Branches:
  refs/heads/master c9ae6a85f -> f1778a02c


Fix typo: 'username' -> 'userName'

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f1778a02
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f1778a02
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f1778a02

Branch: refs/heads/master
Commit: f1778a02c51d652f9e69a88b6e23967735c86782
Parents: c9ae6a8
Author: Gary Gregory <gg...@apache.org>
Authored: Sun Jun 25 12:35:32 2017 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Sun Jun 25 12:35:32 2017 -0700

----------------------------------------------------------------------
 .../logging/log4j/core/appender/mom/JmsManager.java     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f1778a02/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/JmsManager.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/JmsManager.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/JmsManager.java
index 317400f..5677b86 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/JmsManager.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/JmsManager.java
@@ -54,13 +54,13 @@ public class JmsManager extends AbstractManager {
     private final Destination destination;
 
     private JmsManager(final String name, final JndiManager jndiManager, final String connectionFactoryName,
-                       final String destinationName, final String username, final String password)
+                       final String destinationName, final String userName, final String password)
         throws NamingException, JMSException {
         super(null, name);
         this.jndiManager = jndiManager;
         final ConnectionFactory connectionFactory = this.jndiManager.lookup(connectionFactoryName);
-        if (username != null && password != null) {
-            this.connection = connectionFactory.createConnection(username, password);
+        if (userName != null && password != null) {
+            this.connection = connectionFactory.createConnection(userName, password);
         } else {
             this.connection = connectionFactory.createConnection();
         }
@@ -76,8 +76,8 @@ public class JmsManager extends AbstractManager {
      * @param jndiManager           The JndiManager to look up JMS information through.
      * @param connectionFactoryName The binding name for the {@link javax.jms.ConnectionFactory}.
      * @param destinationName       The binding name for the {@link javax.jms.Destination}.
-     * @param userName              The username to connect with or {@code null} for no authentication.
-     * @param password              The password to use with the given username or {@code null} for no authentication.
+     * @param userName              The userName to connect with or {@code null} for no authentication.
+     * @param password              The password to use with the given userName or {@code null} for no authentication.
      * @return The JmsManager as configured.
      */
     public static JmsManager getJmsManager(final String name, final JndiManager jndiManager,
@@ -195,7 +195,7 @@ public class JmsManager extends AbstractManager {
         @Override
         public String toString() {
             return "JmsConfiguration [jndiManager=" + jndiManager + ", connectionFactoryName=" + connectionFactoryName
-                    + ", destinationName=" + destinationName + ", username=" + userName + "]";
+                    + ", destinationName=" + destinationName + ", userName=" + userName + "]";
         }
     }