Skip to content
Permalink
Browse files
No need to initialize to default value.
  • Loading branch information
garydgregory committed Nov 20, 2020
1 parent a723678 commit 4935545522b18a96827252e6d28cf1b5774d732c
Showing 1 changed file with 1 addition and 2 deletions.
@@ -239,8 +239,7 @@ public void testGettingSubset() throws Exception
cc.addConfiguration(conf1);
cc.addConfiguration(xmlConf);

Configuration subset = null;
subset = cc.subset("test");
Configuration subset = cc.subset("test");
assertNotNull(subset);
assertFalse("Shouldn't be empty", subset.isEmpty());
assertEquals("Make sure the initial loaded configs subset overrides any later add configs subset", "1", subset.getString("short"));

0 comments on commit 4935545

Please sign in to comment.