Upgrade lightynode to Ca-SR1
[transportpce.git] / inventory / src / main / java / org / opendaylight / transportpce / inventory / utils / StringUtils.java
index 7f2031ada73ee6fb993aa69bcfec39e10b7d7b61..443988f483e31609ba433e6e9857be65abb64d42 100644 (file)
@@ -65,6 +65,9 @@ public final class StringUtils {
     /**
      * Checks if the given object is null and returns its representation given by replacement.
      *
+     * @param objectString an object
+     * @param replacement a replacement string
+     * @return a string representing the object
      */
     public static String prepareString(Object objectString, String replacement) {
         return objectString == null ? replacement : objectString.toString();
@@ -73,6 +76,8 @@ public final class StringUtils {
     /**
      * Checks if the given object is null and returns -1 .
      *
+     * @param object an object
+     * @return a string representing the object or -1 if null
      */
     public static String prepareEmptyInt(Object object) {
         return (object == null ? "-1" : object.toString());