let child method match parent

This commit is contained in:
Armin Schrenk
2023-06-29 15:55:07 +02:00
parent a31d3185dc
commit 9383abbdbd

View File

@@ -163,7 +163,7 @@ public class PropertiesDecorator extends Properties {
public synchronized Object merge(Object key, Object value, BiFunction<? super Object, ? super Object, ?> remappingFunction) {return delegate.merge(key, value, remappingFunction);}
@Override
public Object clone() {
public synchronized Object clone() {
var delegateClone = (Properties) delegate.clone();
return new PropertiesDecorator(delegateClone);
}