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 2022/05/21 15:51:29 UTC
[commons-configuration] branch master updated: Better local variable 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 62725cf9 Better local variable name.
62725cf9 is described below
commit 62725cf975f286bf38bef5c44f6dab6a92d5f333
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat May 21 11:51:24 2022 -0400
Better local variable name.
---
.../builder/combined/TestCombinedConfigurationBuilder.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/test/java/org/apache/commons/configuration2/builder/combined/TestCombinedConfigurationBuilder.java b/src/test/java/org/apache/commons/configuration2/builder/combined/TestCombinedConfigurationBuilder.java
index 40ab13c3..50e5bd8e 100644
--- a/src/test/java/org/apache/commons/configuration2/builder/combined/TestCombinedConfigurationBuilder.java
+++ b/src/test/java/org/apache/commons/configuration2/builder/combined/TestCombinedConfigurationBuilder.java
@@ -1055,8 +1055,8 @@ public class TestCombinedConfigurationBuilder {
assertTrue("Not a reloading builder", childBuilder instanceof ReloadingControllerSupport);
final ReloadingController ctrl = ((ReloadingControllerSupport) childBuilder).getReloadingController();
ctrl.checkForReloading(null); // initialize reloading
- final BuilderEventListenerImpl l = new BuilderEventListenerImpl();
- childBuilder.addEventListener(ConfigurationBuilderEvent.RESET, l);
+ final BuilderEventListenerImpl listener = new BuilderEventListenerImpl();
+ childBuilder.addEventListener(ConfigurationBuilderEvent.RESET, listener);
reloadConfig.setProperty(key, "yes");
handler.save();
@@ -1071,12 +1071,12 @@ public class TestCombinedConfigurationBuilder {
} while (!changeDetected && --attempts > 0);
assertTrue("No change detected", changeDetected);
assertEquals("Wrong updated property", "yes", builder.getConfiguration().getString(key));
- final ConfigurationBuilderEvent event = l.nextEvent(ConfigurationBuilderEvent.RESET);
- l.assertNoMoreEvents();
+ final ConfigurationBuilderEvent event = listener.nextEvent(ConfigurationBuilderEvent.RESET);
+ listener.assertNoMoreEvents();
final BasicConfigurationBuilder<? extends Configuration> multiBuilder = (BasicConfigurationBuilder<? extends Configuration>) event.getSource();
- childBuilder.removeEventListener(ConfigurationBuilderEvent.RESET, l);
+ childBuilder.removeEventListener(ConfigurationBuilderEvent.RESET, listener);
multiBuilder.resetResult();
- l.assertNoMoreEvents();
+ listener.assertNoMoreEvents();
} finally {
assertTrue("Output file could not be deleted", outFile.delete());
}