for (Bit baseTypeBit : getBaseType().getBits()) {
if (item.getName().equals(baseTypeBit.getName())) {
if (item.getPosition() != baseTypeBit.getPosition()) {
- throw new InvalidBitDefinitionException(item, "Position of bit '%s' must be the same as the " +
- "position of corresponding bit in the base bits type %s.", item.getName(),
+ throw new InvalidBitDefinitionException(item, "Position of bit '%s' must be the same as the "
+ + "position of corresponding bit in the base bits type %s.", item.getName(),
getBaseType().getQName());
}
isASubsetOfBaseBits = true;
}
}
- if (getBaseType() == null) {
- return new BaseBitsType(getPath(), getUnknownSchemaNodes(), positionMap.values());
- } else {
- return new RestrictedBitsType(getBaseType(), getPath(), getUnknownSchemaNodes(), positionMap.values());
- }
+ return getBaseType() == null ? new BaseBitsType(getPath(), getUnknownSchemaNodes(), positionMap.values())
+ : new RestrictedBitsType(getBaseType(), getPath(), getUnknownSchemaNodes(), positionMap.values());
}
}