While the size of a collection cannot be negative, this keeps
SpotBugs happy about the check.
Change-Id: Ic84a9f147b9d933efc66766617f6271fcf1eddc1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
final List<Step> steps = new ArrayList<>();
final int relativeChildren = relative.getChildCount();
- verify(relativeChildren % 2 == 1, "Unexpected child count %s", relativeChildren);
+ verify(relativeChildren % 2 != 0, "Unexpected child count %s", relativeChildren);
for (int i = 0; i < relativeChildren / 2; ++i) {
steps.add(YangXPathAxis.PARENT.asStep());
}