Use short circuit operators when possible

This commit is contained in:
Wiz
2021-12-31 20:09:52 -05:00
committed by dragonmacher
parent 510c4d14c7
commit bfa992a93c
27 changed files with 574 additions and 514 deletions

View File

@@ -447,8 +447,8 @@ public class FGViewUpdater extends VisualGraphViewUpdater<FGVertex, FGEdge> {
GroupedFunctionGraphVertex groupVertex, Point2D groupVertexLocation,
boolean relayoutOverride, boolean animate, boolean isRegroup) {
boolean doAnimate = animate & isAnimationEnabled(); // never animate when the user has disabled it
if (groupVertex.getVertices().size() == 0) {
boolean doAnimate = animate && isAnimationEnabled(); // never animate when the user has disabled it
if (groupVertex.getVertices().isEmpty()) {
return false;
}