Skip to content

Commit 38d92d8

Browse files
committed
cleaning continues... two classes removed, 50 to go
1 parent 3bf533a commit 38d92d8

File tree

5 files changed

+7
-459
lines changed

5 files changed

+7
-459
lines changed

java/src/processing/mode/java/Compiler.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ static public boolean compile(JavaBuild build) throws SketchException {
7070
boolean success = false;
7171

7272
String baseCommand[] = new String[] {
73+
"-g",
7374
"-Xemacs",
7475
//"-noExit", // not necessary for ecj
75-
"-source", "1.6",
76-
"-target", "1.6",
76+
"-source", "1.7",
77+
"-target", "1.7",
7778
"-classpath", build.getClassPath(),
7879
"-nowarn", // we're not currently interested in warnings (works in ecj)
7980
"-d", build.getBinFolder().getAbsolutePath() // output the classes in the buildPath
@@ -149,12 +150,8 @@ public void close() { }
149150
writer.flush();
150151
writer.close();
151152

152-
String errorString = errorBuffer.toString();
153-
// if (errorString.trim().length() != 0) {
154-
// success = false;
155-
// }
156153
BufferedReader reader =
157-
new BufferedReader(new StringReader(errorString));
154+
new BufferedReader(new StringReader(errorBuffer.toString()));
158155
//System.err.println(errorBuffer.toString());
159156

160157
String line = null;

java/src/processing/mode/java/JavaEditor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ public void actionPerformed(ActionEvent e) {
861861
//presentColorPanel.repaint();
862862
repaint();
863863
chooser.hide();
864-
}
864+
}
865865
}
866866

867867

0 commit comments

Comments
 (0)