JAXBConfigImpl extends AbstractBaseConfig { protected void logPropertyChange(String msg, String key, String rawValue, String oldValue, String newValue) { if (!LOG.isInfoEnabled()) { return; } if (oldValue == null) { return; } if (StringUtils.equals(oldValue, newValue)) { return; } String displayOld = flatten(ConfigLogger.getDisplaySafeValue(key, oldValue)); String displayNew = flatten(ConfigLogger.getDisplaySafeValue(key, newValue)); String displayRaw = flatten(rawValue); if (StringUtils.contains(rawValue, "$")) { LOG.info(msg + key + "(" + displayRaw + ")=[" + displayOld + "]->[" + displayNew + "]"); } else { LOG.info(msg + key + "=[" + displayOld + "]->[" + displayNew + "]"); } } JAXBConfigImpl();  JAXBConfigImpl(Config config);  JAXBConfigImpl(String fileLoc, Config config);  JAXBConfigImpl(List<String> fileLocs, Config config);  JAXBConfigImpl(String fileLoc);  JAXBConfigImpl(List<String> fileLocs);  JAXBConfigImpl(Properties properties);  JAXBConfigImpl(String fileLoc, Properties properties);  JAXBConfigImpl(List<String> fileLocs, Properties properties); @Override Object getObject(String key); @Override Map<String, Object> getObjects(); @Override Properties getProperties(); @Override String getProperty(String key); Properties getRawProperties(); @Override void putProperty(String key, String value); @Override void putProperties(Properties properties); @Override void parseConfig(); boolean isSystemOverride(); void setSystemOverride(boolean systemOverride); @Override void putObject(String key, Object value); @Override void putObjects(Map<String, Object> objects); @Override void removeObject(String key); @Override void removeProperty(String key); @Override void putConfig(Config config); @Override String toString();  }
@Test public void testLogPropertyChange() { JAXBConfigImpl config = new JAXBConfigImpl(); config.logPropertyChange("", "foo", "${path}", "old", "new"); }