diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java b/zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java index b682ec64fb0..a9c69b48601 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java +++ b/zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java @@ -342,6 +342,26 @@ boolean isSpecialPath(String path) { || configZookeeper.equals(path); } + /** + * Use {@link StatPersisted#copyFrom(StatPersisted)} instead. + * + *
Apache Curator uses it, let's keep it for now to let them and their clients to react. + */ + @Deprecated + public static void copyStatPersisted(StatPersisted from, StatPersisted to) { + to.copyFrom(from); + } + + /** + * Use {@link Stat#copyFrom(Stat)} instead. + * + *
Apache Curator uses it, let's keep it for now to let them and their clients to react. + */ + @Deprecated + public static void copyStat(Stat from, Stat to) { + to.copyFrom(from); + } + /** * update the count/bytes of this stat data node *