Addressed some checkstyle, PMD and findbugs violations in the ARP module
Change-Id: I194533ba5f96a7631ea662a93cbcbd8a2c84dea9
diff --git a/src/main/java/net/onrc/onos/ofcontroller/proxyarp/ArpWebRoutable.java b/src/main/java/net/onrc/onos/ofcontroller/proxyarp/ArpWebRoutable.java
index eefa2db..606fb29 100644
--- a/src/main/java/net/onrc/onos/ofcontroller/proxyarp/ArpWebRoutable.java
+++ b/src/main/java/net/onrc/onos/ofcontroller/proxyarp/ArpWebRoutable.java
@@ -6,17 +6,31 @@
import org.restlet.Restlet;
import org.restlet.routing.Router;
+/**
+ * Routing class for ARP module REST URLs.
+ */
public class ArpWebRoutable implements RestletRoutable {
- @Override
- public Restlet getRestlet(Context context) {
- Router router = new Router(context);
- router.attach("/cache/json", ArpCacheResource.class);
- return router;
- }
+ /**
+ * Get a router configured with ARP module REST URLs.
+ *
+ * @param context the restlet context to build a router with
+ * @return the router
+ */
+ @Override
+ public Restlet getRestlet(Context context) {
+ Router router = new Router(context);
+ router.attach("/cache/json", ArpCacheResource.class);
+ return router;
+ }
- @Override
- public String basePath() {
- return "/wm/arp";
- }
+ /**
+ * Get the base path of the ARP module URLs.
+ *
+ * @return the string base path
+ */
+ @Override
+ public String basePath() {
+ return "/wm/arp";
+ }
}