Pārlūkot izejas kodu

NFS: Remove @VisibleForTesting in oncrpc package

Suresh Srinivas 12 gadi atpakaļ
vecāks
revīzija
2b3e25e6fc

+ 2 - 3
src/core/org/apache/hadoop/oncrpc/RpcCallCache.java

@@ -23,8 +23,6 @@ import java.util.LinkedHashMap;
 import java.util.Map;
 import java.util.Map.Entry;
 
-import com.google.common.annotations.VisibleForTesting;
-
 /**
  * This class is used for handling the duplicate <em>non-idempotenty</em> Rpc
  * calls. A non-idempotent request is processed as follows:
@@ -162,8 +160,9 @@ public class RpcCallCache {
   /** 
    * Iterator to the cache entries 
    * @return iterator
+   * 
+   * Visible for testing.
    */
-  @VisibleForTesting
   public Iterator<Entry<ClientRequest, CacheEntry>> iterator() {
     return map.entrySet().iterator();
   }

+ 1 - 3
src/core/org/apache/hadoop/oncrpc/XDR.java

@@ -23,8 +23,6 @@ import java.util.Arrays;
 import org.jboss.netty.buffer.ChannelBuffer;
 import org.jboss.netty.buffer.ChannelBuffers;
 
-import com.google.common.annotations.VisibleForTesting;
-
 /**
  * Utility class for building XDR messages based on RFC 4506.
  * <p>
@@ -342,7 +340,7 @@ public class XDR {
     }
   }
 
-  @VisibleForTesting
+  /** Visible for testing */
   public byte[] getBytes() {
     return bytearr;
   }