Skip to content

Commit 48d3c2f

Browse files
author
github-actions
committed
Google Java Format
1 parent ac9b736 commit 48d3c2f

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/org/openpatch/scratch/Sprite.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.awt.Shape;
44
import java.util.AbstractMap;
5-
import java.util.ArrayList;
65
import java.util.List;
76
import java.util.concurrent.ConcurrentHashMap;
87
import java.util.concurrent.CopyOnWriteArrayList;
@@ -1705,13 +1704,7 @@ protected void drawDebug(PGraphics buffer) {
17051704
if (this.costumes.size() > 0 && this.show) {
17061705
this.costumes
17071706
.get(this.currentCostume)
1708-
.drawDebug(
1709-
buffer,
1710-
this.size,
1711-
this.direction,
1712-
this.x,
1713-
this.y,
1714-
this.rotationStyle);
1707+
.drawDebug(buffer, this.size, this.direction, this.x, this.y, this.rotationStyle);
17151708
}
17161709
}
17171710

src/org/openpatch/scratch/Stage.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,9 @@ public void draw() {
14131413
this.eraseBackgroundBuffer = false;
14141414
}
14151415
this.pens.stream().filter(p -> p.isInBackground()).forEach(p -> p.draw(this.backgroundBuffer));
1416-
this.sprites.stream().filter(s -> s.getPen().isInBackground()).forEach(s -> s.getPen().draw(this.backgroundBuffer));
1416+
this.sprites.stream()
1417+
.filter(s -> s.getPen().isInBackground())
1418+
.forEach(s -> s.getPen().draw(this.backgroundBuffer));
14171419
while (!this.backgroundStamps.isEmpty()) {
14181420
this.backgroundStamps.poll().draw(this.backgroundBuffer);
14191421
}
@@ -1458,7 +1460,9 @@ public void draw() {
14581460
this.eraseForegroundBuffer = false;
14591461
}
14601462
this.pens.stream().filter(p -> !p.isInBackground()).forEach(p -> p.draw(this.foregroundBuffer));
1461-
this.sprites.stream().filter(s -> !s.getPen().isInBackground()).forEach(s -> s.getPen().draw(this.foregroundBuffer));
1463+
this.sprites.stream()
1464+
.filter(s -> !s.getPen().isInBackground())
1465+
.forEach(s -> s.getPen().draw(this.foregroundBuffer));
14621466
while (!this.foregroundStamps.isEmpty()) {
14631467
this.foregroundStamps.poll().draw(this.foregroundBuffer);
14641468
}

src/org/openpatch/scratch/extensions/hitbox/Hitbox.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import java.awt.geom.AffineTransform;
77
import java.awt.geom.Area;
88
import java.awt.geom.PathIterator;
9-
109
import org.openpatch.scratch.Window;
1110
import org.openpatch.scratch.extensions.math.Utils;
1211
import processing.core.PConstants;

0 commit comments

Comments
 (0)