static void toPath(PathData pathData, Path path) { final PathData.PathDatum[] nodes = pathData.pathDatums; final float[] current = new float[6]; char previousCommand = 'm'; //noinspection ForLoopReplaceableByForEach for (int i = 0; i < nodes.length; i++) { addCommand(path, current, previousCommand, nodes[i].type, nodes[i].params); previousCommand = nodes[i].type; } }