Fix most bgp-parser-impl checkstyle
[bgpcep.git] / bgp / parser-impl / src / main / java / org / opendaylight / protocol / bgp / parser / impl / message / update / CommunityUtil.java
index 8e13945ec3f5faadc6f27de3a6809af214051644..e255c2fdf3b199046c588f2f263172dcd08007e5 100644 (file)
@@ -73,16 +73,6 @@ public final class CommunityUtil {
         return create(this.refCache, asn, semantics);
     }
 
-    /**
-     * Creates a Community from its String representation.
-     *
-     * @param string String representation of a community
-     * @return new Community
-     */
-    public Community valueOf(final String string) {
-        return valueOf(this.refCache, string);
-    }
-
     /**
      * Creates a new Community given AS number value and semantics using generated CommunitiesBuilder.
      *
@@ -98,6 +88,16 @@ public final class CommunityUtil {
         return refCache.getSharedReference(builder.build());
     }
 
+    /**
+     * Creates a Community from its String representation.
+     *
+     * @param string String representation of a community
+     * @return new Community
+     */
+    public Community valueOf(final String string) {
+        return valueOf(this.refCache, string);
+    }
+
     /**
      * Creates a Community from its String representation.
      *