瀏覽代碼

ZOOKEEPER-1253. return value of DataTree.createNode is never used (Thomas Koch via phunt)

git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1214552 13f79535-47bb-0310-9956-ffa450edef68
Patrick D. Hunt 13 年之前
父節點
當前提交
73deba9c20
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 3 0
      CHANGES.txt
  2. 1 3
      src/java/main/org/apache/zookeeper/server/DataTree.java

+ 3 - 0
CHANGES.txt

@@ -141,6 +141,9 @@ IMPROVEMENTS:
   ZOOKEEPER-1232. remove unused o.a.z.server.util.Profiler
   (Thomas Koch via phunt)
 
+  ZOOKEEPER-1253. return value of DataTree.createNode is never used
+  (Thomas Koch via phunt)
+
 Release 3.4.0 - 
 
 Non-backward compatible changes:

+ 1 - 3
src/java/main/org/apache/zookeeper/server/DataTree.java

@@ -405,10 +405,9 @@ public class DataTree {
      *            an ephemeral node.
      * @param zxid
      * @param time
-     * @return the patch of the created node
      * @throws KeeperException
      */
-    public String createNode(String path, byte data[], List<ACL> acl,
+    public void createNode(final String path, byte data[], List<ACL> acl,
             long ephemeralOwner, int parentCVersion, long zxid, long time)
             throws KeeperException.NoNodeException,
             KeeperException.NodeExistsException {
@@ -478,7 +477,6 @@ public class DataTree {
         dataWatches.triggerWatch(path, Event.EventType.NodeCreated);
         childWatches.triggerWatch(parentName.equals("") ? "/" : parentName,
                 Event.EventType.NodeChildrenChanged);
-        return path;
     }
 
     /**