Add Checkstyle to enforce codestyle rules
Rules are based on Sun style with a few minor modifications
Change-Id: If9e772105053c67550e4f206024fea26b65e611b
diff --git a/src/main/java/com/intel/jndn/management/ManagementException.java b/src/main/java/com/intel/jndn/management/ManagementException.java
index 89a0b25..8e2edfd 100644
--- a/src/main/java/com/intel/jndn/management/ManagementException.java
+++ b/src/main/java/com/intel/jndn/management/ManagementException.java
@@ -26,23 +26,28 @@
*/
public class ManagementException extends Exception {
/**
- * Constructor from the message
+ * Constructor from the message.
+ * @param message Error message
*/
- public ManagementException(String message) {
+ public ManagementException(final String message) {
super(message);
}
/**
- * Constructor from the message and the cause
+ * Constructor from the message and the cause.
+ * @param message Error message
+ * @param cause Chained exception
*/
- public ManagementException(String message, Throwable cause) {
+ public ManagementException(final String message, final Throwable cause) {
super(message, cause);
}
/**
- * Parse an NFD response to create a ManagementException.
+ * Create exception from NFD's ControlResponse.
+ * @param response ControlResponse from which to use status code and status text
+ * @return new instance of ManagementException
*/
- public static ManagementException fromResponse(ControlResponse response) {
+ public static ManagementException fromResponse(final ControlResponse response) {
String message = "Action failed, forwarder returned: " + response.getStatusCode() + " " + response.getStatusText();
return new ManagementException(message);
}