Skip to content

Commit 464ae14

Browse files
committed
clean up syntax
1 parent 6411e44 commit 464ae14

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

java/src/processing/mode/java/pdex/JavaTextAreaPainter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ private synchronized void replaceTextAreaCode(String code) {
772772
}
773773

774774

775-
private String replaceString(String str, int start, int end, String put) {
775+
static private String replaceString(String str, int start, int end, String put) {
776776
return str.substring(0, start) + put + str.substring(end, str.length());
777777
}
778778

java/src/processing/mode/java/tweak/SketchParser.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -736,16 +736,7 @@ else if (!isWhiteSpace(code.charAt(pos))) {
736736
}
737737

738738
static private boolean isWhiteSpace(char c) {
739-
if (c == ' ' ||
740-
c == '\t' ||
741-
c == '\n' ||
742-
c == '\r') {
743-
return true;
744-
}
745-
746-
int[][] a = {{1,2},{3,4}};
747-
748-
return false;
739+
return c == ' ' || c == '\t' || c == '\n' || c == '\r';
749740
}
750741

751742
/**

0 commit comments

Comments
 (0)