address a couple warnings

This commit is contained in:
Ben Fry
2021-10-11 13:54:59 -04:00
parent 9dcbdd723c
commit b583422a78
2 changed files with 15 additions and 15 deletions

View File

@@ -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;

View File

@@ -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