BUG-865: add proper nullness annotations
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / effective / type / BitsSpecificationEffectiveStatementImpl.java
index 03d85d0c2886646afdfca348565158428c4dd802..582695b8ec5ed0cd650ce6d948e7cbded3e525c9 100644 (file)
@@ -45,14 +45,9 @@ public final class BitsSpecificationEffectiveStatementImpl extends
                             "Bit %s must have a position statement", b);
                     }
 
-                    final BitBuilder bitBuilder = BitBuilder.create(b.getPath(), newPos)
-                            .setDescription(b.getDescription()).setReference(b.getReference())
-                            .setUnknownSchemaNodes(b.getUnknownSchemaNodes());
-                    if (b.getStatus() != null) {
-                        bitBuilder.setStatus(b.getStatus());
-                    }
-
-                    b = bitBuilder.build();
+                    b = BitBuilder.create(b.getPath(), newPos).setDescription(b.getDescription())
+                            .setReference(b.getReference()).setStatus(b.getStatus())
+                            .setUnknownSchemaNodes(b.getUnknownSchemaNodes()).build();
                 }
 
                 SourceException.throwIf(b.getPosition() < 0L && b.getPosition() > 4294967295L,