Browse Source

ZOOKEEPER-354. to fix javadoc warning in the source files. (mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/zookeeper/trunk@759023 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 16 năm trước cách đây
mục cha
commit
dce60e840b

+ 2 - 0
CHANGES.txt

@@ -55,6 +55,8 @@ mahadev)
   ZOOKEEPER-353. javadoc warnings needs to be fixed. (giridharan kesavan via
 mahadev) 
 
+  ZOOKEEPER-354.  to fix javadoc warning in the source files. (mahadev)
+
 NEW FEATURES:
 
 

+ 19 - 19
src/java/main/org/apache/zookeeper/KeeperException.java

@@ -450,7 +450,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     *  @see Code.APIERROR
+     *  @see Code#APIERROR
      */
     public static class APIErrorException extends KeeperException {
         public APIErrorException() {
@@ -459,7 +459,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     *  @see Code.AUTHFAILED
+     *  @see Code#AUTHFAILED
      */
     public static class AuthFailedException extends KeeperException {
         public AuthFailedException() {
@@ -468,7 +468,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     *  @see Code.BADARGUMENTS
+     *  @see Code#BADARGUMENTS
      */
     public static class BadArgumentsException extends KeeperException {
         public BadArgumentsException() {
@@ -477,7 +477,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.BADVERSION
+     * @see Code#BADVERSION
      */
     public static class BadVersionException extends KeeperException {
         public BadVersionException() {
@@ -486,7 +486,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.CONNECTIONLOSS
+     * @see Code#CONNECTIONLOSS
      */
     public static class ConnectionLossException extends KeeperException {
         public ConnectionLossException() {
@@ -495,7 +495,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.DATAINCONSISTENCY
+     * @see Code#DATAINCONSISTENCY
      */
     public static class DataInconsistencyException extends KeeperException {
         public DataInconsistencyException() {
@@ -504,7 +504,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.INVALIDACL
+     * @see Code#INVALIDACL
      */
     public static class InvalidACLException extends KeeperException {
         public InvalidACLException() {
@@ -513,7 +513,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.INVALIDCALLBACK
+     * @see Code#INVALIDCALLBACK
      */
     public static class InvalidCallbackException extends KeeperException {
         public InvalidCallbackException() {
@@ -522,7 +522,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.MARSHALLINGERROR
+     * @see Code#MARSHALLINGERROR
      */
     public static class MarshallingErrorException extends KeeperException {
         public MarshallingErrorException() {
@@ -531,7 +531,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.NOAUTH
+     * @see Code#NOAUTH
      */
     public static class NoAuthException extends KeeperException {
         public NoAuthException() {
@@ -540,7 +540,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.NOCHILDRENFOREPHEMERALS
+     * @see Code#NOCHILDRENFOREPHEMERALS
      */
     public static class NoChildrenForEphemeralsException extends KeeperException {
         public NoChildrenForEphemeralsException() {
@@ -549,7 +549,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.NODEEXISTS
+     * @see Code#NODEEXISTS
      */
     public static class NodeExistsException extends KeeperException {
         public NodeExistsException() {
@@ -558,7 +558,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.NONODE
+     * @see Code#NONODE
      */
     public static class NoNodeException extends KeeperException {
         public NoNodeException() {
@@ -567,7 +567,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.NOTEMPTY
+     * @see Code#NOTEMPTY
      */
     public static class NotEmptyException extends KeeperException {
         public NotEmptyException() {
@@ -576,7 +576,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.OPERATIONTIMEOUT
+     * @see Code#OPERATIONTIMEOUT
      */
     public static class OperationTimeoutException extends KeeperException {
         public OperationTimeoutException() {
@@ -585,7 +585,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.RUNTIMEINCONSISTENCY
+     * @see Code#RUNTIMEINCONSISTENCY
      */
     public static class RuntimeInconsistencyException extends KeeperException {
         public RuntimeInconsistencyException() {
@@ -594,7 +594,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.SESSIONEXPIRED
+     * @see Code#SESSIONEXPIRED
      */
     public static class SessionExpiredException extends KeeperException {
         public SessionExpiredException() {
@@ -603,7 +603,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.SYSTEMERROR
+     * @see Code#SYSTEMERROR
      */
     public static class SystemErrorException extends KeeperException {
         public SystemErrorException() {
@@ -612,7 +612,7 @@ public abstract class KeeperException extends Exception {
     }
 
     /**
-     * @see Code.UNIMPLEMENTED
+     * @see Code#UNIMPLEMENTED
      */
     public static class UnimplementedException extends KeeperException {
         public UnimplementedException() {

+ 2 - 2
src/java/main/org/apache/zookeeper/ZooKeeper.java

@@ -487,7 +487,7 @@ public class ZooKeeper {
      *                the initial data for the node
      * @param acl
      *                the acl for the node
-     * @param flags
+     * @param createMode
      *                specifying whether the node to be created is ephemeral
      *                and/or sequential
      * @return the actual path of the created node
@@ -591,7 +591,7 @@ public class ZooKeeper {
      * The Asynchronous version of create. The request doesn't actually until
      * the asynchronous callback is called.
      *
-     * @see #create(String, byte[], List<ACL>, CreateMode)
+     * @see #create(String, byte[], List, CreateMode)
      */
 
     public void create(String path, byte data[], List<ACL> acl,

+ 0 - 1
src/java/main/org/apache/zookeeper/server/upgrade/UpgradeMain.java

@@ -129,7 +129,6 @@ public class UpgradeMain {
     
     /**
      * run the upgrade
-     * @return 0 if success else it failed
      * @throws IOException
      */
     public void runUpgrade() throws IOException {