Fix eclipse/checkstyle warnings
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / Immutables.java
index da5521f7425eb9ff9ee4f1f26f0ba967367195c3..43be1d704576829cc672755088c7b691ae46bb38 100644 (file)
@@ -31,19 +31,19 @@ public final class Immutables {
      * <p>Note: This method may return false to immutable objects which
      * immutability is not known, was defined not using concepts term.
      *
-     * @param o
+     * @param obj
      *            Reference to check
      * @return true if object is known to be immutable false otherwise.
      */
-    public static boolean isImmutable(final Object o) {
-        Preconditions.checkArgument(o != null,"Object should not be null");
-        if (o instanceof Mutable) {
+    public static boolean isImmutable(final Object obj) {
+        Preconditions.checkArgument(obj != null,"Object should not be null");
+        if (obj instanceof Mutable) {
             return false;
-        } else if (o instanceof Immutable) {
+        } else if (obj instanceof Immutable) {
             return true;
-        } else if (o instanceof String) {
+        } else if (obj instanceof String) {
             return true;
-        } else if (KNOWN_IMMUTABLES.contains(o.getClass())) {
+        } else if (KNOWN_IMMUTABLES.contains(obj.getClass())) {
             return true;
         }
         return false;