Javadoc fixes

- fix missing Javadoc @param and @throw annotations
- enable checkstyle checks for method javadocs on non-private methods

Change-Id: I9a370419a699bab3225d85f2f641927600b9f11c
This commit is contained in:
Ray Milkey 2016-11-10 14:51:27 -08:00 committed by Gerrit Code Review
parent 15079bbc73
commit 0bb1e10a3f
19 changed files with 42 additions and 19 deletions

View File

@ -27,6 +27,7 @@ public interface PatchPanelService {
*
* @param cp the first connect point
* @param cp2 the second connect point
* @return true if the patch was created, false otherwise
*/
boolean addPatch(ConnectPoint cp, ConnectPoint cp2);
}

View File

@ -834,6 +834,7 @@ public class Ofdpa2Pipeline extends AbstractHandlerBehaviour implements Pipeline
*
* @param fwd the forwarding objective
* @param allowDefaultRoute allow wildcarded IPv4_DST or not
* @param mplsNextTable next MPLS table
* @return A collection of flow rules, or an empty set
*/
protected Collection<FlowRule> processEthTypeSpecificInternal(ForwardingObjective fwd,

View File

@ -28,6 +28,7 @@ public interface VoltFwdlConfig extends HandlerBehaviour {
* Upgrade firmware manually in an ONU in the device.
*
* @param target input data in string
* @return string representing the reply
*/
String upgradeFirmwareOndemand(String target);

View File

@ -512,6 +512,7 @@ public class DefaultIsisInterface implements IsisInterface {
*
* @param isisMessage received ISIS message
* @param isisLsdb ISIS LSDB instance
* @param channel channel
*/
public void processIsisMessage(IsisMessage isisMessage, IsisLsdb isisLsdb, Channel channel) {
log.debug("IsisInterfaceImpl::processIsisMessage...!!!");
@ -1122,4 +1123,4 @@ public class DefaultIsisInterface implements IsisInterface {
exServiceHello.shutdown();
helloSenderStarted = false;
}
}
}

View File

@ -230,7 +230,6 @@ public class LspEventConsumer implements Runnable {
*
* @param localSystemId local system ID
* @param remoteSystemId remote system ID
* @return link information
* @param interfaceIp interface address
* @param neighborIp neighbor address
* @param lsPdu link state PDU instance
@ -351,4 +350,4 @@ public class LspEventConsumer implements Runnable {
}
return isisLinkTed;
}
}
}

View File

@ -236,6 +236,9 @@ public class DefaultIsisLsdb implements IsisLsdb {
/**
* Installs a new self-originated LSP.
*
* @param isisMessage ISIS message
* @param isSelfOriginated is the message self originated?
* @param isisInterface ISIS interface
* @return true if successfully added
*/
public boolean addLsp(IsisMessage isisMessage, boolean isSelfOriginated, IsisInterface isisInterface) {
@ -431,4 +434,4 @@ public class DefaultIsisLsdb implements IsisLsdb {
log.debug("Added LSp In Blocking queue: {}", lspWrapper);
}
}
}
}

View File

@ -42,6 +42,8 @@ public class DefaultIsisRouter implements IsisRouter {
/**
* Sets IP address of the Router.
*
* @param systemId system identifier of the router
*/
public void setSystemId(String systemId) {
this.systemId = systemId;
@ -129,4 +131,4 @@ public class DefaultIsisRouter implements IsisRouter {
public int hashCode() {
return Objects.hashCode(systemId, neighborRouterId, interfaceId);
}
}
}

View File

@ -84,6 +84,7 @@ public interface LispLocatorRecord {
* Writes LISP message object into communication channel.
*
* @param byteBuf byte buffer
* @throws LispWriterException on error
*/
void writeTo(ByteBuf byteBuf) throws LispWriterException;

View File

@ -86,6 +86,7 @@ public interface LispMapRecord {
* Writes LISP message object into communication channel.
*
* @param byteBuf byte buffer
* @throws LispWriterException on error
*/
void writeTo(ByteBuf byteBuf) throws LispWriterException;

View File

@ -524,6 +524,7 @@ public class OspfAreaImpl implements OspfArea {
*
* @param ospfLsa OSPF LSA instance
* @param ospfInterface OSPF interface instance
* @throws Exception on error
*/
public void addLsa(OspfLsa ospfLsa, OspfInterface ospfInterface) throws Exception {
//second param is false as lsa from network
@ -536,6 +537,7 @@ public class OspfAreaImpl implements OspfArea {
* @param ospfLsa OSPF LSA instance
* @param isSelfOriginated true if the LSA is self originated. Else false
* @param ospfInterface OSPF interface instance
* @throws Exception on error
*/
public void addLsa(OspfLsa ospfLsa, boolean isSelfOriginated, OspfInterface ospfInterface)
throws Exception {
@ -720,4 +722,4 @@ public class OspfAreaImpl implements OspfArea {
public OspfLsdb database() {
return database;
}
}
}

View File

@ -556,6 +556,7 @@ public class OspfNbrImpl implements OspfNbr {
* In addition, stop the possibly activated re transmission timer.
*
* @param ch netty channel instance
* @throws Exception on error
*/
public void badLSReq(Channel ch) throws Exception {
log.debug("OSPFNbr::badLSReq...!!!");
@ -1932,4 +1933,4 @@ public class OspfNbrImpl implements OspfNbr {
return lsUpdateList;
}
}
}
}

View File

@ -44,6 +44,8 @@ public class OspfRouterImpl implements OspfRouter {
/**
* Sets IP address of the Router.
*
* @param routerIp IP address of the router
*/
public void setRouterIp(Ip4Address routerIp) {
this.routerIp = routerIp;
@ -60,6 +62,8 @@ public class OspfRouterImpl implements OspfRouter {
/**
* Sets the area id for this device.
*
* @param areaIdOfInterface area identifier for the device
*/
public void setAreaIdOfInterface(Ip4Address areaIdOfInterface) {
this.areaIdOfInterface = areaIdOfInterface;
@ -154,4 +158,4 @@ public class OspfRouterImpl implements OspfRouter {
public void setDr(boolean dr) {
isDr = dr;
}
}
}

View File

@ -28,7 +28,7 @@ public enum OpaqueTopLevelTlvTypes {
/**
* Creates an instance of Opaque top level tlv types.
*
* @param value
* @param value opaque TLV value
*/
OpaqueTopLevelTlvTypes(int value) {
this.value = value;

View File

@ -25,8 +25,7 @@ public interface RestConfNotificationEventListener {
/**
* Handles the notification event.
*
* @param <T>
*
* @param <T> entity type
* @param deviceId of the restconf device
* @param eventJsonString the json string representation of the event
*/

View File

@ -191,9 +191,9 @@ public class RestConfSBControllerImpl extends HttpSBControllerImpl
}
/**
* @param request
* @param mediaType
* @param device
* @param request request
* @param mediaType media type
* @param device device identifier
*/
public GetChunksRunnable(String request, String mediaType,
DeviceId device) {

View File

@ -132,8 +132,10 @@
<!-- Checks for Javadoc comments. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
<module name="JavadocMethod">
<property name="severity" value="warning"/>
<property name="scope" value="package"/>
<property name="allowMissingJavadoc" value="true"/>
<property name="allowUndeclaredRTE" value="true"/>
<property name="suppressLoadErrors" value="true"/>
</module>
<module name="JavadocType">
<property name="severity" value="warning"/>

View File

@ -17,7 +17,6 @@
<!DOCTYPE suppressions PUBLIC "-//Puppy Crawl//DTD Suppressions 1.1//EN" "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
<suppressions>
<suppress files="org.apache.karaf.branding.*" checks="[a-zA-Z0-9]*"/>
<suppress files=".*" checks="FinalParametersCheck"/>
@ -34,13 +33,13 @@
<suppress files="org.onosproject.segmentrouting.*" checks="AbbreviationAsWordInName" />
<!-- Suppressions for unit testing code -->
<suppress checks="JavadocPackage"
<suppress checks="Javadoc.*"
files=".*/src/test/.*.java"
/>
<suppress checks="JavadocPackage"
<suppress checks="Javadoc.*"
files=".*/thirdparty/.*.java"/>
<!-- Suppressions for yangutils generated code -->
<suppress files="org.onosproject.yang.gen.v1.*" checks="JavadocStyle" />
<suppress files="org.onosproject.yang.gen.v1.*" checks="Javadoc.*" />
</suppressions>

View File

@ -121,6 +121,7 @@ public class IGMPQuery extends IGMPGroup {
*
* @param bb ByteBuffer pointing at the IGMP Query group address
* @return the IGMP Group object
* @throws DeserializationException on serializer error
*/
public IGMPGroup deserialize(ByteBuffer bb) throws DeserializationException {

View File

@ -91,6 +91,11 @@ public class PIMHello extends BasePacket {
/**
* XXX: This is deprecated, DO NOT USE, use the deserializer() function instead.
*
* @param data bytes to deserialize
* @param offset offset to start deserializing from
* @param length length of the data to deserialize
* @return nothing
*/
public IPacket deserialize(final byte[] data, final int offset,
final int length) {