@Override public synchronized Object replace(Object key, Object value) { if (interned != null) copyFromInternedToThis(); return super.replace(key, value); }
@Override public synchronized boolean replace(Object key, Object oldValue, Object newValue) { if (interned != null) copyFromInternedToThis(); return super.replace(key, oldValue, newValue); }
@Override public synchronized boolean replace(Object key, Object oldValue, Object newValue) { if (interned != null) copyFromInternedToThis(); return super.replace(key, oldValue, newValue); }
@Override public synchronized Object replace(Object key, Object value) { if (interned != null) copyFromInternedToThis(); return super.replace(key, value); }
@Override public synchronized boolean replace(Object key, Object oldValue, Object newValue) { Objects.requireNonNull(oldValue); Objects.requireNonNull(newValue); String sKey = (String) key; String sOldValue = (String) oldValue; String sNewValue = (String) newValue; if (isNewCryptoProperty(sKey, sNewValue)) { // Crypto properties are not themselves encrypted if (super.replace(key, sOldValue, sNewValue)) { resetCrypto(); return true; } else { return false; } } if (super.replace(sKey, new String(crypto.decrypt(sOldValue)), new String(crypto.decrypt(sNewValue)))) { if (Crypto.isEncrypted(sNewValue)) { encrypted.put(sKey, sNewValue); } else { encrypted.remove(sKey); } return true; } return false; }
Document document = Jsoup.parseBodyFragment(propertyValue, ""); if (!CLEANER.isValid(document)) { properties.replace(property.getKey(), CLEANER.clean(document).body().html());