Skip to content

Commit c211eb1

Browse files
committed
Fix #619
1 parent b59ad67 commit c211eb1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

java/src/processing/mode/java/preproc/PdeParseTreeListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public void exitMethodDeclaration(ProcessingParser.MethodDeclarationContext ctx)
591591
if (annoationPoint == null) {
592592
insertBefore(possibleModifiers.getStart(), "public ");
593593
} else {
594-
insertAfter(annoationPoint.getStop(), "public ");
594+
insertAfter(annoationPoint.getStop(), " public ");
595595
}
596596
}
597597

java/test/resources/staticannotations.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ class Button {
2626
this.radius = radius;
2727
}
2828

29-
boolean over() {
29+
public boolean over() {
3030
return dist(mouseX, mouseY, this.x, this.y) < this.radius;
3131
}
3232

33-
void draw() {
33+
public void draw() {
3434
ellipse(this.x, this.y, this.radius * 2, this.radius * 2);
3535
}
3636

3737
@Deprecated
38-
void old() {
38+
public void old() {
3939
ellipse(this.x, this.y, this.radius, this.radius);
4040
}
4141

@@ -45,7 +45,7 @@ class Button {
4545
class ButtonOther extends Button {
4646

4747
@Override
48-
boolean over() {
48+
public boolean over() {
4949
return dist(mouseX, mouseY, this.x, this.y) < this.radius / 2;
5050
}
5151

0 commit comments

Comments
 (0)