This commit is contained in:
Clebert Suconic 2018-06-06 15:20:12 -04:00
commit 6322e30d4a
2 changed files with 8 additions and 1 deletions

View File

@ -1635,7 +1635,7 @@ public class ConfigurationImpl implements Configuration, Serializable {
result = prime * result + (logJournalWriteRate ? 1231 : 1237);
result = prime * result + ((managementAddress == null) ? 0 : managementAddress.hashCode());
result = prime * result + ((managementNotificationAddress == null) ? 0 : managementNotificationAddress.hashCode());
result = prime * result + (maskPassword ? 1231 : 1237);
result = prime * result + (maskPassword == null ? 0 : maskPassword.hashCode());
result = prime * result + maxConcurrentPageIO;
result = prime * result + (int) (memoryMeasureInterval ^ (memoryMeasureInterval >>> 32));
result = prime * result + memoryWarningThreshold;

View File

@ -88,6 +88,13 @@ public class ConfigurationImplTest extends ActiveMQTestBase {
Assert.assertEquals(ActiveMQDefaultConfiguration.getDefaultMemoryMeasureInterval(), conf.getMemoryMeasureInterval());
}
@Test
public void testNullMaskPassword() {
ConfigurationImpl impl = new ConfigurationImpl();
impl.setMaskPassword(null);
impl.hashCode();
}
@Test
public void testSetGetAttributes() throws Exception {
for (int j = 0; j < 100; j++) {