BUG-3907: openflow-plugin-api does not build with jdk8 30/23630/2
authorMichal Rehak <mirehak@cisco.com>
Wed, 1 Jul 2015 07:38:45 +0000 (09:38 +0200)
committerMichal Rehak <mirehak@cisco.com>
Wed, 1 Jul 2015 08:16:27 +0000 (10:16 +0200)
 - added missing docs
 - fixed misformed docs

Change-Id: I8eb131e7b0510718a4690b69094bb27907b79c41
Signed-off-by: Michal Rehak <mirehak@cisco.com>
14 files changed:
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/ConnectionAdapter.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/OutboundQueue.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/connection/SwitchConnectionHandler.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/DeserializerRegistry.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/DeserializerRegistryInjector.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/EnhancedMessageTypeKey.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/HeaderDeserializer.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/HeaderSerializer.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/SerializerExtensionProvider.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/extensibility/SerializerRegistry.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/keys/ExperimenterIdDeserializerKey.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/keys/ExperimenterInstructionDeserializerKey.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/keys/InstructionDeserializerKey.java
openflow-protocol-api/src/main/java/org/opendaylight/openflowjava/protocol/api/util/BinContent.java

index 443dea5780d6d67b47f57f280bb3a55161a57892..89cd461f05add5f9aaf5c56c0072e2b974d497b3 100644 (file)
@@ -57,13 +57,15 @@ public interface ConnectionAdapter extends OpenflowProtocolService {
 
     /**
      * set listener for connection became ready-to-use event
-     * @param connectionReadyListener
+     * @param connectionReadyListener listens to connection ready event
      */
     void setConnectionReadyListener(ConnectionReadyListener connectionReadyListener);
 
     /**
      * sets option for automatic channel reading;
      * if set to false, incoming messages won't be read
+     *
+     * @param autoRead target value to be switched to
      */
     void setAutoRead(boolean autoRead);
 
@@ -74,9 +76,10 @@ public interface ConnectionAdapter extends OpenflowProtocolService {
 
     /**
      * Registers a new bypass outbound queue
-     * @param handler
-     * @param maxQueueDepth
-     * @param maxBarrierNanos
+     * @param <T> handler type
+     * @param handler queue handler
+     * @param maxQueueDepth max amount of not confirmed messaged in queue (i.e. edge for barrier message)
+     * @param maxBarrierNanos regular base for barrier message
      * @return An {@link OutboundQueueHandlerRegistration}
      */
     @Beta
index afe5b056b2192cb183d5c4b6f7d9426b38c700a6..3212078c6bc2655ba4382d09f5c9c0231a3c6f1a 100644 (file)
@@ -30,10 +30,10 @@ public interface OutboundQueue {
      * with a response, the object reported will be non-null. If the request's completion
      * is implied by a barrier, the object reported will be null.
      *
-     * If this request fails on the remote device, {@link FutureCallback#onFailure(Throwable)
+     * If this request fails on the remote device, {@link FutureCallback#onFailure(Throwable)}
      * will be called with an instance of {@link DeviceRequestFailedException}.
      *
-     * If the request fails due to local reasons, {@link FutureCallback#onFailure(Throwable)
+     * If the request fails due to local reasons, {@link FutureCallback#onFailure(Throwable)}
      * will be called with an instance of {@link OutboundQueueException}. In particular, if
      * this request failed because the device disconnected, {@link OutboundQueueException#DEVICE_DISCONNECTED}
      * will be reported.
index 363e324504c7a6e89f9a5e9d4081c0c1c45dbf7b..8b4fddf6ba30ba30bfb1b33398c8523f5ea34d5c 100644 (file)
@@ -24,7 +24,7 @@ public interface SwitchConnectionHandler {
     void onSwitchConnected(ConnectionAdapter connection);
 
     /**
-     * @param switchAddress
+     * @param switchAddress address of incoming connection (address + port)
      * @return true, if connection from switch having given address shell be accepted; false otherwise
      */
     boolean accept(InetAddress switchAddress);
index 6970a1dc67280cf9e264065715b34ae89d8b864f..27660398b42b0225ddd128601be5800f6b5c2b5b 100644 (file)
@@ -22,6 +22,7 @@ public interface DeserializerRegistry {
     void init();
 
     /**
+     * @param <T> type of particular deserializer
      * @param key used for deserializer lookup
      * @return deserializer found
      */
index 0b291af384bdc1c88310a1836ddcb17671197567..98e836334fd7427550d706d69ec6074e7c9f1d86 100644 (file)
@@ -15,7 +15,7 @@ public interface DeserializerRegistryInjector {
 
     /**
      * Injects deserializer registry into deserializer
-     * @param deserializerRegistry
+     * @param deserializerRegistry registry of deserializers
      */
     void injectDeserializerRegistry(DeserializerRegistry deserializerRegistry);
 }
index ec578c6b6e2f6f7797ad903b0c5a12c255f4b3fe..3a9fffc260fbf616e1269ba91c2c9f907e530930 100644 (file)
@@ -21,9 +21,9 @@ public class EnhancedMessageTypeKey<E, F> extends MessageTypeKey<E> {
     private final Class<F> msgType2;
 
     /**
-     * @param msgVersion
-     * @param msgType
-     * @param msgType2
+     * @param msgVersion protocol version
+     * @param msgType main type
+     * @param msgType2 subtype
      */
     public EnhancedMessageTypeKey(short msgVersion, Class<E> msgType, Class<F> msgType2) {
         super(msgVersion, msgType);
index 1d105f39c85ec19d375afa3f884161a2561b5034..a0fe93913dd125c6b21811903ce0caad13b8e910 100644 (file)
@@ -8,12 +8,11 @@
 package org.opendaylight.openflowjava.protocol.api.extensibility;
 
 import io.netty.buffer.ByteBuf;
-
 import org.opendaylight.yangtools.yang.binding.DataObject;
 
 /**
  * @author michal.polkorab
- * @param <E>
+ * @param <E> output message type
  */
 public interface HeaderDeserializer<E extends DataObject> extends OFGeneralDeserializer {
 
index 1e047c09ba3809f76e7f3266488ed586eed09847..b8b8a029779e4daf33afb062751f08f33b596ab4 100644 (file)
@@ -7,14 +7,13 @@
  */
 package org.opendaylight.openflowjava.protocol.api.extensibility;
 
-import org.opendaylight.yangtools.yang.binding.DataObject;
-
 import io.netty.buffer.ByteBuf;
+import org.opendaylight.yangtools.yang.binding.DataObject;
 
 /**
  * Does only-header serialization (such as oxm_ids, action_ids, instruction_ids)
  * @author michal.polkorab
- * @param <T>
+ * @param <T> input message type
  */
 public interface HeaderSerializer<T extends DataObject> extends OFGeneralSerializer {
 
index 7d83cd8282921c54d3a05fee6b50044a8f22f4fb..ebccdad87719fe9dbe994ab1bb13e56fa48ab92a 100644 (file)
@@ -60,6 +60,8 @@ public interface SerializerExtensionProvider {
 
     /**
      * Registers match entry serializer
+     * @param <C> oxm type
+     * @param <F> match field type
      * @param key used for serializer lookup
      * @param serializer serializer implementation
      */
index 7fb39bbd9eeb3755f4510e51959a06291e3f67cf..1ddc48565e6daf2a5ea095161087d02d1d6e8e87 100644 (file)
@@ -23,6 +23,8 @@ public interface SerializerRegistry {
     void init();
 
     /**
+     * @param <K> input key type
+     * @param <S> type of resulting serializer
      * @param msgTypeKey lookup key
      * @return serializer or NullPointerException if no serializer was found
      */
@@ -36,6 +38,7 @@ public interface SerializerRegistry {
      * If the serializer implements {@link SerializerRegistryInjector} interface,
      * the serializer is injected with SerializerRegistry instance.
      *
+     * @param <K> serializer key type
      * @param key used for serializer lookup
      * @param serializer serializer implementation
      */
@@ -44,6 +47,7 @@ public interface SerializerRegistry {
 
     /**
      * Unregisters serializer
+     * @param <K> serializer key type
      * @param key used for serializer lookup
      * @return true if serializer was removed,
      *  false if no serializer was found under specified key
index bc16e52361a1b410e5f11bf39b71902dc214f756..dfc75a8efa18c7b903bffff0b0b9aec3b1f80945 100644 (file)
@@ -21,6 +21,7 @@ public final class ExperimenterIdDeserializerKey extends MessageCodeKey
     private Long experimenterId;
 
     /**
+     * @param <E> type of target experimenter object
      * @param version protocol wire version
      * @param experimenterId experimenter / vendor ID
      * @param objectClass class of created object
index 45232a661aaed5647db1d856e812856c65ed0a34..eea3e4ef82eddf1c678a0fdf9c817ee395d78169 100644 (file)
@@ -19,7 +19,7 @@ public final class ExperimenterInstructionDeserializerKey extends InstructionDes
 
     /**
      * @param version protocol wire version
-     * @param experimenterId
+     * @param experimenterId experimenter (vendor) identifier
      */
     public ExperimenterInstructionDeserializerKey(short version, Long experimenterId) {
         super(version, EncodeConstants.EXPERIMENTER_VALUE, experimenterId);
index 3a0bf9824ae686f4b59bc1cfa79d7777622f6e97..8482f6ef2d6af928c8538319f908e828fe903de9 100644 (file)
@@ -20,7 +20,7 @@ public class InstructionDeserializerKey extends MessageCodeKey {
     /**
      * @param version protocol wire version
      * @param type instruction type
-     * @param experimenterId
+     * @param experimenterId experimenter (vendor) identifier
      */
     public InstructionDeserializerKey(short version, int type,
             Long experimenterId) {
index 700fdf4de63bebddab2aed8f1f565ae5d6bcea9f..995fd350300590beccd792b36f644bbadaba6f8f 100644 (file)
@@ -19,15 +19,15 @@ public abstract class BinContent {
     }
 
     /**
-     * @param value
-     * @return int part wrapped in long
+     * @param value input integer value (might be negative)
+     * @return int part wrapped in long (always positive)
      */
     public static long intToUnsignedLong(int value) {
         return value & 0x00000000ffffffffL;
     }
 
     /**
-     * @param value
+     * @param value input long value
      * @return long cut into int
      */
     public static int longToSignedInt(long value) {