Fix for Bug 134: added restriction check to classes wrapping int and uint values.
[yangtools.git] / code-generator / binding-generator-util / src / main / java / org / opendaylight / yangtools / binding / generator / util / AbstractBaseType.java
index e0c65afebb77ca456284074f2c49ddb31e4176ce..735c888a0eb172f314f841ddaa93d4a42859b192 100644 (file)
@@ -82,7 +82,7 @@ public class AbstractBaseType implements Type {
         if (obj == null) {
             return false;
         }
-        if (getClass() != obj.getClass()) {
+        if (false ==(obj instanceof Type)) {
             return false;
         }
         Type other = (Type) obj;