diff --git a/src/main/java/de/neemann/digital/draw/graphics/GraphicSVG.java b/src/main/java/de/neemann/digital/draw/graphics/GraphicSVG.java index 46d38b8de..eca7c7fe9 100644 --- a/src/main/java/de/neemann/digital/draw/graphics/GraphicSVG.java +++ b/src/main/java/de/neemann/digital/draw/graphics/GraphicSVG.java @@ -94,6 +94,8 @@ public class GraphicSVG implements Graphic, Closeable { @Override public void drawPolygon(Polygon p, Style style) { try { + //modification of loop variable i is intended! + //CHECKSTYLE.OFF: ModifiedControlVariable w.write(" { mergeLabels(); } + //modification of loop variable j is intended! + //CHECKSTYLE.OFF: ModifiedControlVariable private void mergeLabels() { for (int i = 0; i < netList.size() - 1; i++) for (int j = i + 1; j < netList.size(); j++) @@ -55,6 +57,7 @@ public class NetList implements Iterable { j--; } } + //CHECKSTYLE.ON: ModifiedControlVariable /** * Creates a copy of the given net list