Improve compatibility with Java 8 javadoc 20/16220/5
authorLadislav Borak <lborak@cisco.com>
Wed, 18 Mar 2015 17:37:12 +0000 (18:37 +0100)
committerLadislav Borak <lborak@cisco.com>
Thu, 19 Mar 2015 09:03:53 +0000 (10:03 +0100)
This fixes various javadoc inconsistencies reported by JDK8.

Change-Id: Ic41c2d16e8191885266b6b8f440fe17eb5ec159c
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Ladislav Borak <lborak@cisco.com>
42 files changed:
bgp/flowspec/src/main/java/org/opendaylight/protocol/bgp/flowspec/FSNlriParser.java
bgp/linkstate/src/main/java/org/opendaylight/protocol/bgp/linkstate/nlri/LinkstateNlriParser.java
bgp/parser-api/src/main/java/org/opendaylight/protocol/bgp/parser/BGPParsingException.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPNotificationMessageParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/BGPOpenMessageParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AggregatorAttributeParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AigpAttributeParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/AsPathAttributeParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/CommunitiesAttributeParser.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/CommunityUtil.java
bgp/parser-impl/src/main/java/org/opendaylight/protocol/bgp/parser/impl/message/update/ExtendedCommunitiesAttributeParser.java
bgp/parser-mock/src/main/java/org/opendaylight/protocol/bgp/parser/mock/BGPMessageParserMock.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/AttributeParser.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/AttributeUtil.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/CapabilityUtil.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/MessageUtil.java
bgp/parser-spi/src/main/java/org/opendaylight/protocol/bgp/parser/spi/ParameterUtil.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/AbstractBGPSessionNegotiator.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPSynchronization.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/StrictBGPPeerRegistry.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/spi/BGPDispatcher.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/spi/BGPPeerRegistry.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/spi/BGPSessionPreferences.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/spi/BGPSessionProposal.java
bgp/rib-spi/src/main/java/org/opendaylight/protocol/bgp/rib/spi/AbstractAdjRIBs.java
bgp/rib-spi/src/main/java/org/opendaylight/protocol/bgp/rib/spi/BGPObjectComparator.java
bgp/rib-spi/src/main/java/org/opendaylight/protocol/bgp/rib/spi/RIBEntry.java
bgp/topology-provider/src/main/java/org/opendaylight/bgpcep/bgp/topology/provider/LocRIBListener.java
bgp/util/src/main/java/org/opendaylight/protocol/bgp/util/HexDumpBGPFileParser.java
pcep/api/src/main/java/org/opendaylight/protocol/pcep/TerminationReason.java
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/AbstractPCEPSessionNegotiator.java
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/AbstractPCEPSessionNegotiatorFactory.java
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/EROSubobjectRegistry.java
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/ObjectRegistry.java
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/ObjectSerializer.java
pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/RROSubobjectRegistry.java
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListener.java
util/src/main/java/org/opendaylight/protocol/util/ByteArray.java
util/src/main/java/org/opendaylight/protocol/util/Ipv4Util.java
util/src/main/java/org/opendaylight/protocol/util/Ipv6Util.java
util/src/main/java/org/opendaylight/protocol/util/StatisticsUtil.java

index 3910e4364e0a860ca5eedb8d85a6d6fc11bdce43..9520159edc9f9fdb37420d5679aa82fdcbde1dc1 100644 (file)
@@ -178,7 +178,8 @@ public class FSNlriParser implements NlriParser, NlriSerializer {
     /**
      * Serializes Flowspec NLRI to ByteBuf.
      *
-     * @param flow flowspec NLRI to be serialized
+     * @param flows flowspec NLRI to be serialized
+     * @param buffer where flowspec NLRI will be serialized
      */
     public static void serializeNlri(final List<Flowspec> flows, final ByteBuf buffer) {
         final ByteBuf nlriByteBuf = Unpooled.buffer();
@@ -316,6 +317,12 @@ public class FSNlriParser implements NlriParser, NlriSerializer {
                 .setDestinationFlowspec(new org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.flowspec.rev150114.update.path.attributes.mp.reach.nlri.advertized.routes.destination.type.destination.flowspec._case.DestinationFlowspecBuilder().setFlowspec(dst).build()).build()).build());
     }
 
+    /**
+     * Parses Flowspec NLRI into list of Flowspec.
+     *
+     * @param nlri byte representation of NLRI which will be parsed
+     * @return list of Flowspec
+     */
     public static List<Flowspec> parseNlri(final ByteBuf nlri) throws BGPParsingException {
         if (!nlri.isReadable()) {
             return null;
index 18c344d2f5d553def09ab038ef83a6e7b3bb4a88..c0e2777481488f0e5cd66be42c3e34cdb77cb2ef 100644 (file)
@@ -8,14 +8,11 @@
 package org.opendaylight.protocol.bgp.linkstate.nlri;
 
 import com.google.common.base.Preconditions;
-
 import io.netty.buffer.ByteBuf;
 import io.netty.buffer.Unpooled;
-
 import java.math.BigInteger;
 import java.util.ArrayList;
 import java.util.List;
-
 import org.opendaylight.protocol.bgp.linkstate.spi.TlvUtil;
 import org.opendaylight.protocol.bgp.parser.BGPParsingException;
 import org.opendaylight.protocol.bgp.parser.spi.NlriParser;
@@ -96,6 +93,7 @@ public final class LinkstateNlriParser implements NlriParser, NlriSerializer {
      * Parses common parts for Link State Nodes, Links and Prefixes, that includes protocol ID and identifier tlv.
      *
      * @param nlri as byte array
+     * @param isVpn flag which determines that destination has route distinguisher
      * @return {@link CLinkstateDestination}
      * @throws BGPParsingException if parsing was unsuccessful
      */
@@ -187,6 +185,7 @@ public final class LinkstateNlriParser implements NlriParser, NlriSerializer {
      * Serializes Linkstate NLRI to byte array. We need this as NLRI serves as a key in upper layers.
      *
      * @param destination Linkstate NLRI to be serialized
+     * @param buffer where Linkstate NLRI will be serialized
      */
     public static void serializeNlri(final CLinkstateDestination destination, final ByteBuf buffer) {
         final ByteBuf nlriByteBuf = Unpooled.buffer();
index 83bdcf20a90a7698a5b6e5f884591d7d7c48b6a2..721e65a46d3c51eae33916beb08c9a1be9778a4f 100644 (file)
@@ -16,6 +16,7 @@ public class BGPParsingException extends Exception {
     private static final long serialVersionUID = 1L;
 
     /**
+     * Creates new BGPParsingException with specific error message.
      *
      * @param err error message string.
      */
@@ -24,6 +25,7 @@ public class BGPParsingException extends Exception {
     }
 
     /**
+     * Creates new BGPParsingException with specific message and cause.
      *
      * @param message exception message
      * @param cause primary exception
index 87bc1c3bffea528a1386e445428103959f499c41..3079f66d4ed98a81b894415e53f10d47432fd8ce 100644 (file)
@@ -39,7 +39,7 @@ public final class BGPNotificationMessageParser implements MessageParser, Messag
      * Serializes BGP Notification message.
      *
      * @param msg to be serialized
-     * @param ByteBuf where the message will be serialized
+     * @param bytes ByteBuf where the message will be serialized
      */
     @Override
     public void serializeMessage(final Notification msg, final ByteBuf bytes) {
@@ -62,7 +62,8 @@ public final class BGPNotificationMessageParser implements MessageParser, Messag
      * Parses BGP Notification message to bytes.
      *
      * @param body ByteBuf to be parsed
-     * @return BGPNotification message
+     * @param messageLength the length of the message
+     * @return {@link Notify} which represents BGP notification message
      * @throws BGPDocumentedException if parsing goes wrong
      */
     @Override
index 31dac1913cf1d9471696efc10a54e470f17f082b..515f6d06a0019a7a5906e676e9475fede496036f 100644 (file)
@@ -99,7 +99,8 @@ public final class BGPOpenMessageParser implements MessageParser, MessageSeriali
      * Parses given byte array to BGP Open message
      *
      * @param body byte array representing BGP Open message, without header
-     * @return BGP Open Message
+     * @param messageLength the length of the message
+     * @return {@link Open} BGP Open Message
      * @throws BGPDocumentedException if the parsing was unsuccessful
      */
     @Override
index 253174775d340d483142592306a5b0eb84e7e796..7b92d3c6893737e8b020cf8f4bc7cfe61ff16a91 100644 (file)
@@ -35,10 +35,10 @@ public final class AggregatorAttributeParser implements AttributeParser, Attribu
     }
 
     /**
-     * Parse AGGREGATOR from bytes
+     * Parse {@link Aggregator} from bytes
      *
      * @param buffer byte buffer to be parsed
-     * @return {@link Aggregator} BGP Aggregator
+     * @param builder PathAttributesBuilder into which parsed {@link Aggregator} will be set
      */
     @Override
     public void parseAttribute(final ByteBuf buffer, final PathAttributesBuilder builder) {
index 27a5f365f4ff53a5cb7b7a06265fe2313b62cb27..ad23be57d3b8c50a9a2622754ce947f27ed074ff 100644 (file)
@@ -60,10 +60,8 @@ public class AigpAttributeParser implements AttributeParser, AttributeSerializer
     /**
      * Reads data from buffer until reaches TLV of type AIGP TLV.
      *
-     * @param buffer
-     *          TLVs in ByteBuf format
-     * @return
-     *          instance of AigpTlv class or null if buffer contains unknown TLV type
+     * @param buffer TLVs in ByteBuf format
+     * @return instance of AigpTlv class or null if buffer contains unknown TLV type
      */
     private static AigpTlv parseAigpTLV(final ByteBuf buffer) {
         final int tlvType = buffer.readByte();
index bbca10c216ec0105c185ec69ad237e9169f39433..7c30cf65c5fc25b86412b956b0b378eaa8e2630f 100644 (file)
@@ -55,7 +55,9 @@ public final class AsPathAttributeParser implements AttributeParser, AttributeSe
     /**
      * Parses AS_PATH from bytes.
      *
-     * @param buffer bytes to be parsed @return new ASPath object
+     * @param refCache ReferenceCache shared reference of object
+     * @param buffer bytes to be parsed
+     * @return new ASPath object
      * @throws BGPDocumentedException if there is no AS_SEQUENCE present (mandatory)
      * @throws BGPParsingException
      */
index 9e2ee85b9a601a46bc4d8377e4ddb911957a4014..26eacfa306d772049a04f9b29ff09ae9f6e47e15 100644 (file)
@@ -58,8 +58,7 @@ public final class CommunitiesAttributeParser implements AttributeParser, Attrib
     * Parse known Community, if unknown, a new one will be created.
     *
     * @param refCache
-    *
-    * @param bytes byte array to be parsed
+    * @param buffer byte array to be parsed
     * @return new Community
     * @throws BGPDocumentedException
     */
index 0e90d534b274754c50285986ed2708dff53e8a3a..ce79fabfdcc9e263f63f8f0d69d1c0f13e91f042 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.protocol.bgp.parser.impl.message.update;
 
 import com.google.common.base.Preconditions;
-
 import org.opendaylight.protocol.util.NoopReferenceCache;
 import org.opendaylight.protocol.util.ReferenceCache;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.AsNumber;
@@ -48,7 +47,7 @@ public final class CommunityUtil {
      * Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.
      *
      * @param asn long
-     * @param semantics long
+     * @param semantics int
      * @return new Community
      */
     public Community create(final long asn, final int semantics) {
@@ -70,7 +69,7 @@ public final class CommunityUtil {
      *
      * @param refCache reference cache to use
      * @param asn long
-     * @param semantics long
+     * @param semantics int
      * @return new Community
      */
     public static Community create(final ReferenceCache refCache, final long asn, final int semantics) {
index a4c4ebc916f66db4970b15769dd0827c61f5b369..32dfd6e4e3e98640cb18d2937a1b5aec64bb23ac 100644 (file)
@@ -103,7 +103,9 @@ public class ExtendedCommunitiesAttributeParser implements AttributeParser,Attri
     /**
      * Parse Extended Community according to their type.
      *
-     * @param bytes byte array to be parsed
+     * @param refCache
+     * @param comm ExtendedCommunitiesBuilder based on which community type will be new ExtendedCommunity created
+     * @param buffer byte array to be parsed
      * @return new Specific Extended Community
      * @throws BGPDocumentedException if the type is not recognized
      */
index d68837b55ec5ea3e078ad2ee7cac00dc786f0c71..04b2be3034791a9ef47e2d131a5adbe4699bb5e3 100644 (file)
@@ -8,9 +8,7 @@
 package org.opendaylight.protocol.bgp.parser.mock;
 
 import io.netty.buffer.ByteBuf;
-
 import java.util.Map;
-
 import org.opendaylight.protocol.bgp.parser.BGPDocumentedException;
 import org.opendaylight.protocol.bgp.parser.BGPParsingException;
 import org.opendaylight.protocol.bgp.parser.spi.MessageRegistry;
@@ -25,7 +23,9 @@ public class BGPMessageParserMock implements MessageRegistry {
     private final Map<ByteBuf, Notification> messages;
 
     /**
-     * @param updateMessages Map<byte[], BGPUpdateEvent>
+     * Creates a new BGPMessageParserMock with given messages.
+     *
+     * @param messages represents a new map of ByteBuf and Notification
      */
     public BGPMessageParserMock(final Map<ByteBuf, Notification> messages) {
         this.messages = messages;
index fac9e15268b94b0f20b318826491609e07393b3b..57f19c879b505c2c5055d4b8ea733fe4bd2f7ee5 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.protocol.bgp.parser.spi;
 
 import io.netty.buffer.ByteBuf;
-
 import org.opendaylight.protocol.bgp.parser.BGPDocumentedException;
 import org.opendaylight.protocol.bgp.parser.BGPParsingException;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.update.PathAttributesBuilder;
@@ -18,6 +17,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.mess
  */
 public interface AttributeParser {
     /**
+     * Parses attribute from ByteBuf buffer
+     *
      * @param buffer encoded attribute body in Bytebuf
      * @param builder Path attributes builder. Guaranteed to contain all valid attributes whose type is numerically
      *        lower than this attribute's type.
index b024369eb06b9876272a1fe296f51488b6cf1a89..1f28e38df4b2c7a57e789957565fb9512f33d743 100644 (file)
@@ -26,6 +26,7 @@ public final class AttributeUtil {
      * Adds header to attribute value. If the length of the attribute value exceeds one-byte length field,
      * set EXTENDED bit and write length as 2B field.
      *
+     * @param flags
      * @param type of the attribute
      * @param value attribute value
      * @param buffer ByteBuf where the attribute will be copied with its header
index e3d6179462ee75be614f87dcc9c709d8b5f65ba5..f7f3412d4dbf6f0f3bcc67e256fc1f552ad5e17f 100644 (file)
@@ -18,7 +18,7 @@ public final class CapabilityUtil {
     /**
      * Adds header to capability value.
      *
-     * @param type of the capability
+     * @param code type of the capability
      * @param value capability value
      * @param buffer ByteBuf where the capability will be copied with its header
      */
index aeb137099de71c79342ec995b7e2975281ddb427..2dac5c35c6375592089e88afbeb402ed9daee919 100644 (file)
@@ -32,7 +32,7 @@ public final class MessageUtil {
      * Adds header to message value.
      *
      * @param type of the message
-     * @param value message value
+     * @param body message body
      * @param buffer ByteBuf where the message will be copied with its header
      */
     public static void formatMessage(final int type, final ByteBuf body, final ByteBuf buffer) {
index f24311ced5d2f646586f827f3c80835f881afc29..dcf8bdc3cbde172a5a5b0e155ebdabecb1041a83 100644 (file)
@@ -9,6 +9,9 @@ package org.opendaylight.protocol.bgp.parser.spi;
 
 import io.netty.buffer.ByteBuf;
 
+/**
+ * Utility class which is intended for formatting parameter.
+ */
 public final class ParameterUtil {
 
     private ParameterUtil() {
index 58d6bf4fa2650523406da02f9012a1291e462536..0539e5d4bc733c648e70045fb1a39e406b70ad69 100644 (file)
@@ -36,7 +36,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Bgp Session negotiator. Common for local -> remote and remote -> local connections.
+ * Bgp Session negotiator. Common for local-to-remote and remote-to-local connections.
  * One difference is session validation performed by injected BGPSessionValidator when OPEN message is received.
  */
 public abstract class AbstractBGPSessionNegotiator extends AbstractSessionNegotiator<Notification, BGPSessionImpl> {
index 75b31b161034f89ad2d11ed3f72d4fcccdaa36c5..db15f995984cf40c738a160f23263e6835c1071b 100644 (file)
@@ -76,7 +76,7 @@ public class BGPSynchronization {
     /**
      * For each received Update message, the upd sync variable needs to be updated to true, for particular AFI/SAFI
      * combination. Currently we only assume Unicast SAFI. From the Update message we have to extract the AFI. Each
-     * Update message can contain BGP Object with one type of AFI. If the object is BGP Link, BGP Node or BGPPrefix<?>
+     * Update message can contain BGP Object with one type of AFI. If the object is BGP Link, BGP Node or a BGPPrefix
      * the AFI is Linkstate. In case of BGPRoute, the AFI depends on the IP Address of the prefix.
      *
      * @param msg received Update message
index 6c6853de839a82302c1c07807a6251e0a8a5fd7d..895a9b4990226c7e92e925e535529517b40e7811 100644 (file)
@@ -158,10 +158,10 @@ public final class StrictBGPPeerRegistry implements BGPPeerRegistry {
     }
 
     /**
-     * Create IpAddress from SocketAddress. Only InetSocketAddress is accepted with inner address: Inet4Address and Inet6Address.
+     * Creates IpAddress from SocketAddress. Only InetSocketAddress is accepted with inner address: Inet4Address and Inet6Address.
      *
-     * @throws IllegalArgumentException if submitted socket address is not InetSocketAddress[ipv4 | ipv6]
      * @param socketAddress socket address to transform
+     * @throws IllegalArgumentException if submitted socket address is not InetSocketAddress[ipv4 | ipv6]
      */
     public static IpAddress getIpAddress(final SocketAddress socketAddress) {
         Preconditions.checkNotNull(socketAddress);
index 33a8b0ff4c5ba09537f4564ee9860839e1b74a62..8b86dafd18d597654c21e540727da6ff9fa7ce7d 100644 (file)
@@ -8,9 +8,7 @@
 package org.opendaylight.protocol.bgp.rib.impl.spi;
 
 import io.netty.util.concurrent.Future;
-
 import java.net.InetSocketAddress;
-
 import org.opendaylight.protocol.bgp.rib.spi.BGPSession;
 import org.opendaylight.protocol.framework.ReconnectStrategy;
 import org.opendaylight.protocol.framework.ReconnectStrategyFactory;
@@ -26,7 +24,9 @@ public interface BGPDispatcher extends BGPServerDispatcher {
      * Creates BGP client.
      *
      * @param address Peer address
+     * @param remoteAS remote AS
      * @param peerRegistry BGP peer registry
+     * @param strategy reconnection strategy
      * @return Future promising a client session
      */
     Future<? extends BGPSession> createClient(InetSocketAddress address, AsNumber remoteAs,
index 8d8b18afa79c7faf29cfa14580b9eb752b879a27..ccd500801235a009cdfeff6bbe569901cec0491e 100644 (file)
@@ -57,6 +57,7 @@ public interface BGPPeerRegistry extends AutoCloseable {
      * @param ip address of remote peer
      * @param sourceId BGP ID of peer that initiated the session (current device or remote peer)
      * @param remoteId BGP ID of peer that accepted the session (current device or remote peer)
+     * @param asNumber id of the AS
      * @return configured Peer as BGP listener
      *
      * @throws BGPDocumentedException if session establishment cannot be finished successfully
index eed321883c1149b6027493408793be2cf5e6aa2c..aa67f2e491e918cd6e85dfa9223bfdf3bc0c9c5c 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.protocol.bgp.rib.impl.spi;
 
 import java.util.List;
-
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.AsNumber;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.open.BgpParameters;
@@ -32,7 +31,7 @@ public final class BGPSessionPreferences {
      * @param as local AS number
      * @param hold preferred hold timer value, in seconds
      * @param bgpId local BGP Identifier
-     * @param param advertized parameters
+     * @param params list of advertised parameters
      */
     public BGPSessionPreferences(final AsNumber as, final int hold, final Ipv4Address bgpId, final List<BgpParameters> params) {
         this.as = as;
@@ -68,6 +67,11 @@ public final class BGPSessionPreferences {
         return this.bgpId;
     }
 
+    /**
+     * Gets a list of advertised bgp parameters.
+     *
+     * @return a list of advertised bgp parameters
+     */
     public List<BgpParameters> getParams() {
         return this.params;
     }
index 2b61bf46760a9d1ecc7d0fe9dc39f23c392a221f..23b8fae274f9c5abf356172f99cd26be3eb4f42d 100644 (file)
@@ -14,7 +14,6 @@ public interface BGPSessionProposal {
     /**
      * Returns BGPSessionPreferences for this IP address.
      *
-     * @param address serves as constraint, the implementation can also take time into consideration
      * @return BGPSessionPreferences with acceptable session characteristics
      */
     BGPSessionPreferences getProposal();
index 8b65910639c0016bfebb1c52e38202d95502445e..02d06d92b4026b32520d15c592926d9cf3a7ff5e 100644 (file)
@@ -179,7 +179,7 @@ public abstract class AbstractAdjRIBs<I, D extends Identifiable<K> & Route, K ex
     public abstract I keyForIdentifier(KeyedInstanceIdentifier<D, K> id);
 
     /**
-     * Common backend for {@link AdjRIBsIn#addRoutes()} implementations.
+     * Common backend for {@link AdjRIBsIn#addRoutes(AdjRIBsTransaction, Peer, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev130919.update.path.attributes.MpReachNlri, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130919.update.PathAttributes)} implementations.
      * If a new route is added, check first for its existence in Map of entries.
      * If the route is already there, change it's state. Then check for peer in
      * Map of peers, if it's not there, add it.
@@ -206,7 +206,7 @@ public abstract class AbstractAdjRIBs<I, D extends Identifiable<K> & Route, K ex
     }
 
     /**
-     * Common backend for {@link AdjRIBsIn#removeRoutes()} implementations.
+     * Common backend for {@link AdjRIBsIn#removeRoutes(AdjRIBsTransaction, Peer, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev130919.update.path.attributes.MpUnreachNlri)} implementations.
      *
      * @param trans Transaction context
      * @param peer Originating peer
index 3a1af8ce8c8476fb0ba400eb4daf6817b4bd45c6..1279d52306853c89f230b2b05c301e8988e9ff09 100644 (file)
@@ -23,10 +23,7 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.type
 
 /**
  * This comparator is intended to implement BGP Best Path Selection algorithm, as described at
- *
- * @see http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094431.shtml
- *
- * @param <T> Actual object state reference
+ * <a href="http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094431.shtml">here</a>
  */
 public final class BGPObjectComparator implements Comparator<RIBEntryData<?, ?, ?>>, Serializable {
 
index 4319174099bf11d0cae213f9bdd94d8c684b236f..2a212c5ec5f1dfdc3d477fdd24a1736c3c5b18f8 100644 (file)
@@ -68,7 +68,7 @@ final class RIBEntry<I, D extends Identifiable<K> & Route, K extends Identifier<
      *
      * @param comparator
      * @param initial
-     * @return
+     * @return candidate for founded initial route
      */
     private RIBEntryData<I, D, K> findCandidate(final BGPObjectComparator comparator, final RIBEntryData<I, D, K> initial) {
         RIBEntryData<I, D, K> newState = initial;
index d442c65bed184987c21d829692e5cc8bc4b89670..41979adce1e47b6feb4fb1fc5cfdb2e4ca7c75c4 100644 (file)
@@ -20,7 +20,6 @@ public interface LocRIBListener extends EventListener {
      *        modifications propagated. The transaction is not shared with any other entity and will be cleaned up by
      *        the caller if it is not committed before this method returns.
      * @param event Data change event
-     * @param depth Subscription path depth.
      */
     void onLocRIBChange(ReadWriteTransaction trans, AsyncDataChangeEvent<InstanceIdentifier<?>, DataObject> event);
 }
index e7556228f6a129b557728f03feaf3178149709cf..bf0b13a7d4b162fd5a7d7bd05d388fac37cd9935 100644 (file)
@@ -27,8 +27,7 @@ import org.slf4j.LoggerFactory;
 
 /**
  * Read text file, parse BGP messages. File can contain comments or other data. BGP messages are detected using 16 ff
- * marker. New lines and spaces are ignored. Use {@link ByteArray#bytesToHexString(byte[])} for serializing bytes to
- * this format.
+ * marker. New lines and spaces are ignored.
  */
 @Immutable
 public final class HexDumpBGPFileParser {
index ba29184ff17867589e4f7d5d6c9e849ca7960c13..9eae09028c0c7ca0e667d20ce40ce3bc395e2559 100644 (file)
@@ -28,13 +28,17 @@ public enum TerminationReason {
     }
 
     /**
-     * @return integer value
+     * Gets value of termination reason.
+     *
+     * @return short value
      */
     public short getShortValue() {
         return this.value;
     }
 
     /**
+     * Gets termination reason for specific short value.
+     *
      * @param valueArg
      * @return corresponding TerminationReason item
      */
index c9629096f1de63b4126afe912122521834d59155..2b3f165f360432a2a479448a15d94fed4bd358ea 100644 (file)
@@ -116,7 +116,6 @@ public abstract class AbstractPCEPSessionNegotiator extends AbstractSessionNegot
      * Create the protocol session.
      *
      * @param channel Underlying channel.
-     * @param sessionId Assigned session ID.
      * @param localPrefs Session preferences proposed by us and accepted by the peer.
      * @param remotePrefs Session preferences proposed by the peer and accepted by us.
      * @return New protocol session.
index c31f458182bb75533f785585418d9b0f83c13001..f93f0c006c6f519ced8160e1c3dfb133e2e945a5 100644 (file)
@@ -32,6 +32,7 @@ public abstract class AbstractPCEPSessionNegotiatorFactory implements
      * Create a new negotiator. This method needs to be implemented by subclasses to actually provide a negotiator.
      *
      * @param promise Session promise to be completed by the negotiator
+     * @param listener PCEPSessionListener
      * @param channel Associated channel
      * @param sessionId Session ID assigned to the resulting session
      * @return a PCEP session negotiator
index b9b4aa0d270c9e2e16cd81e2d57232aa1e3e22d7..2ef32ca4f17e8bfec26e3d6af340ac3b25dd7b44 100644 (file)
@@ -15,7 +15,7 @@ public interface EROSubobjectRegistry {
     /**
      * Finds parser for given subobject type in the registry. Delegates parsing to found parser.
      *
-     * @param type subobject type, key in parser registry
+     * @param subobjectType subobject type, key in parser registry
      * @param buffer subobject wrapped in ByteBuf
      * @param loose ERO specific common field
      * @return null if the parser for this subobject could not be found
index 05ec7b433eb403128c9f6597678a867cc2447468..56992fa2b1ac85f116786854949ce6fe2f3911ad 100644 (file)
@@ -17,7 +17,7 @@ public interface MessageRegistry {
     /**
      * Finds parser for given message type in the registry. Delegates parsing to found parser.
      *
-     * @param type message type, key in parser registry
+     * @param messageType message type, key in parser registry
      * @param buffer message wrapped in ByteBuf
      * @param errors list of error messages, that is filled during parsing
      * @return null if the parser for this message could not be found
index 69889bc7cfd4b9492f89605ac785615f0705a5de..0051abf2392cfa6b94bd696c48ade92728ae5eec 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.protocol.pcep.spi;
 
 import io.netty.buffer.ByteBuf;
-
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.Object;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.ObjectHeader;
 
@@ -16,8 +15,9 @@ public interface ObjectRegistry {
     /**
      * Finds parser for given object type and class in the registry. Delegates parsing to found parser.
      *
-     * @param objectType object type
      * @param objectClass object class
+     * @param objectType object type
+     * @param header ObjectHeader
      * @param buffer object wrapped in ByteBuf
      * @return null if the parser for this object could not be found
      * @throws PCEPDeserializerException if the parsing did not succeed
index 7b38d004c6ccfabf90e1ed82626731341668822f..815468f39433d0b595511777887945fc571589f0 100644 (file)
@@ -15,7 +15,7 @@ public interface ObjectSerializer {
 
     /**
      * Serializes given object to bytes wrapped in given ByteBuf.
-     * @param message PCEP object to be serialized
+     * @param object PCEP object to be serialized
      * @param buffer ByteBuf wrapper around serialized object
      */
     void serializeObject(final Object object, final ByteBuf buffer);
index 40d2683eb8865b600672b03b11ab916fd87f79ac..fbc3c425eb6e22e707a50105969b6e27b58146e8 100644 (file)
@@ -8,7 +8,6 @@
 package org.opendaylight.protocol.pcep.spi;
 
 import io.netty.buffer.ByteBuf;
-
 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev131005.reported.route.object.rro.Subobject;
 
 public interface RROSubobjectRegistry {
@@ -17,7 +16,7 @@ public interface RROSubobjectRegistry {
      *
      * @param type subobject type, key in parser registry
      * @param buffer subobject wrapped in ByteBuf
-     * @return null if the parser for this subobject could not be found
+     * @return null if the parser for this subobject could not be found otherwise returns parser
      * @throws PCEPDeserializerException if the parsing did not succeed
      */
     Subobject parseSubobject(final int type, final ByteBuf buffer) throws PCEPDeserializerException;
index c8fc1385642cbbaf401e19f3c341de1f33e55b1f..24adec11cf3fcd010c3a232d908f9aea5efdd99b 100644 (file)
@@ -82,6 +82,8 @@ final class Stateful07TopologySessionListener extends AbstractTopologySessionLis
     private final AtomicLong requestId = new AtomicLong(1L);
 
     /**
+     * Creates a new stateful topology session listener for given server session manager.
+     *
      * @param serverSessionManager
      */
     Stateful07TopologySessionListener(final ServerSessionManager serverSessionManager) {
index 83b6d863768ba95539c2bb75a8200ee17d6e7b17..2cb15c2c22cf1ca46b0b258fc7fb86273c116a18 100644 (file)
@@ -157,7 +157,7 @@ public final class ByteArray {
      * Cuts 'count' number of bytes from the beginning of given byte array.
      *
      * @param bytes array to be cut, cannot be null
-     * @param count how many bytes needed to be cut, needs to be > 0
+     * @param count how many bytes needed to be cut, needs to be greater than 0
      * @return bytes array without first 'count' bytes
      */
     public static byte[] cutBytes(final byte[] bytes, final int count) {
@@ -251,11 +251,11 @@ public final class ByteArray {
     }
 
     /**
-     * Copies range of bits from passed byte and align to right.<br/>
+     * Copies range of bits from passed byte and align to right.<br>
      *
      * @param src source byte to copy from
      * @param fromBit bit from which will copy (inclusive) - numbered from 0
-     * @param length of bits to by copied - <1,8>
+     * @param length of bits to by copied, valid values are 1 through 8
      * @return copied value aligned to right
      */
     public static byte copyBitsRange(final byte src, final int fromBit, final int length) {
index e63aa88ea2b4e77bd9e296091d6adb6befdc556a..79c4e8aa297de3c486fdb5b2195dd979edd2633f 100644 (file)
@@ -158,7 +158,7 @@ public final class Ipv4Util {
      * Creates a list of Ipv4 Prefixes from given byte array.
      *
      * @param bytes to be converted to List of Ipv4Prefixes.
-     * @return List<Ipv4Prefix>
+     * @return A list of Ipv4Prefixes
      */
     public static List<Ipv4Prefix> prefixListForBytes(final byte[] bytes) {
         if (bytes.length == 0) {
index 391402f687d9394988fc3db2e1951a3549589ca4..b1c1964738caf501976e15dfbd4809b29a4fc4fb 100644 (file)
@@ -145,7 +145,7 @@ public final class Ipv6Util {
      * Creates a list of Ipv6 Prefixes from given byte array.
      *
      * @param bytes to be converted to List of Ipv6Prefixes.
-     * @return List<Ipv6Prefix>
+     * @return A List of Ipv6Prefixes
      */
     public static List<Ipv6Prefix> prefixListForBytes(final byte[] bytes) {
         if (bytes.length == 0) {
index 7b99af94f0f4fad114aa1e15c4a77c3c27189330..50df91caa3cec0a704f917f3ee9360cd2e8ca6de 100644 (file)
@@ -36,10 +36,9 @@ public final class StatisticsUtil {
     }
 
     /**
-     * Get current time in seconds.
+     * Get current time in seconds. See also {@link System#currentTimeMillis()}.
      *
      * @return the difference, measured in seconds, between the current time and midnight, January 1, 1970 UTC.
-     * @see System.currentTimeMillis()
      */
     public static long getCurrentTimestampInSeconds() {
         return TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis());