mirror of
https://github.com/processing/processing4.git
synced 2026-01-29 03:11:08 +01:00
address a couple warnings
This commit is contained in:
@@ -20,7 +20,6 @@ along with this program; if not, write to the Free Software Foundation, Inc.
|
||||
|
||||
package processing.mode.java;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
@@ -1327,7 +1326,7 @@ public class CompletionGenerator {
|
||||
static class ClassMember {
|
||||
private Field field;
|
||||
private Method method;
|
||||
private Constructor<?> cons;
|
||||
// private Constructor<?> cons;
|
||||
private Class<?> thisClass;
|
||||
private final String stringVal;
|
||||
private String classType;
|
||||
|
||||
@@ -2173,19 +2173,20 @@ public class JavaEditor extends Editor {
|
||||
frmImportSuggest.setVisible(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the sketch contains java tabs. If it does, the editor ain't
|
||||
* built for it, yet. Also, user should really start looking at a full IDE
|
||||
* like Eclipse. Disable compilation check and some more features.
|
||||
*/
|
||||
private boolean checkForJavaTabs() {
|
||||
for (SketchCode code : getSketch().getCode()) {
|
||||
if (code.getExtension().equals("java")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// /**
|
||||
// * Checks if the sketch contains java tabs. If it does, the editor ain't
|
||||
// * built for it, yet. Also, user should really start looking at a full IDE
|
||||
// * like Eclipse. Disable compilation check and some more features.
|
||||
// */
|
||||
// private boolean checkForJavaTabs() {
|
||||
// for (SketchCode code : getSketch().getCode()) {
|
||||
// if (code.getExtension().equals("java")) {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user