Added copy method to CompilerConfiguration.
This commit is contained in:
@@ -62,4 +62,10 @@ public class CompilerConfiguration {
|
|||||||
List<T> list = holder.putUserDataIfAbsent(key, new CopyOnWriteArrayList<T>());
|
List<T> list = holder.putUserDataIfAbsent(key, new CopyOnWriteArrayList<T>());
|
||||||
list.addAll(value);
|
list.addAll(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CompilerConfiguration copy() {
|
||||||
|
CompilerConfiguration copy = new CompilerConfiguration();
|
||||||
|
holder.copyUserDataTo(copy.holder);
|
||||||
|
return copy;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user