You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2021/01/17 15:18:36 UTC

[commons-configuration] branch master updated: Update local name.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git


The following commit(s) were added to refs/heads/master by this push:
     new bb73ab2  Update local name.
bb73ab2 is described below

commit bb73ab25c33f7f0ee1343ecbb28297e76c7a7680
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 17 10:18:32 2021 -0500

    Update local name.
---
 .../apache/commons/configuration2/JNDIConfiguration.java   | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/configuration2/JNDIConfiguration.java b/src/main/java/org/apache/commons/configuration2/JNDIConfiguration.java
index 6f14645..994237c 100644
--- a/src/main/java/org/apache/commons/configuration2/JNDIConfiguration.java
+++ b/src/main/java/org/apache/commons/configuration2/JNDIConfiguration.java
@@ -135,13 +135,13 @@ public class JNDIConfiguration extends AbstractConfiguration
                 final Object object = context.lookup(name);
 
                 // build the key
-                final StringBuilder key = new StringBuilder();
-                key.append(prefix);
-                if (key.length() > 0)
+                final StringBuilder keyBuilder = new StringBuilder();
+                keyBuilder.append(prefix);
+                if (keyBuilder.length() > 0)
                 {
-                    key.append(".");
+                    keyBuilder.append(".");
                 }
-                key.append(name);
+                keyBuilder.append(name);
 
                 if (object instanceof Context)
                 {
@@ -149,14 +149,14 @@ public class JNDIConfiguration extends AbstractConfiguration
                     final Context subcontext = (Context) object;
                     if (!processedCtx.contains(subcontext))
                     {
-                        recursiveGetKeys(keys, subcontext, key.toString(),
+                        recursiveGetKeys(keys, subcontext, keyBuilder.toString(),
                                 processedCtx);
                     }
                 }
                 else
                 {
                     // add the key
-                    keys.add(key.toString());
+                    keys.add(keyBuilder.toString());
                 }
             }
         }