Browse Source

let child method match parent

Armin Schrenk 1 year ago
parent
commit
9383abbdbd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/org/cryptomator/common/PropertiesDecorator.java

+ 1 - 1
src/main/java/org/cryptomator/common/PropertiesDecorator.java

@@ -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);
 	}