Resolved some sonar issues: Simplify Boolean Expression
authorLadislav Borak <lborak@cisco.com>
Tue, 14 Oct 2014 11:46:29 +0000 (13:46 +0200)
committerLadislav Borak <lborak@cisco.com>
Tue, 14 Oct 2014 11:46:29 +0000 (13:46 +0200)
Change-Id: Ie4d9efb2a00330bede69aac80789065cac895710
Signed-off-by: Ladislav Borak <lborak@cisco.com>
code-generator/binding-generator-util/src/main/java/org/opendaylight/yangtools/binding/generator/util/AbstractBaseType.java

index 735c888a0eb172f314f841ddaa93d4a42859b192..2c15ad8a36fc57737a761bc84580a9d0923da38d 100644 (file)
@@ -11,7 +11,7 @@ import org.opendaylight.yangtools.sal.binding.model.api.Type;
 
 /**
  * It is used only as ancestor for other <code>Type</code>s
- * 
+ *
  */
 public class AbstractBaseType implements Type {
 
@@ -47,7 +47,7 @@ public class AbstractBaseType implements Type {
     /**
      * Constructs the instance of this class with the concrete package name type
      * name.
-     * 
+     *
      * @param pkName
      *            string with the package name to which this <code>Type</code>
      *            belongs
@@ -82,7 +82,7 @@ public class AbstractBaseType implements Type {
         if (obj == null) {
             return false;
         }
-        if (false ==(obj instanceof Type)) {
+        if (!(obj instanceof Type)) {
             return false;
         }
         Type other = (Type) obj;