deal with a handful of warnings

This commit is contained in:
Ben Fry
2017-02-03 11:58:22 -05:00
parent ccf4210860
commit e650d4104d
3 changed files with 7 additions and 8 deletions

View File

@@ -1407,7 +1407,7 @@ public class Debugger {
}
private void logitse(Throwable t) {
static private void logitse(Throwable t) {
Messages.loge("incompatible thread state?", t);
}

View File

@@ -72,7 +72,6 @@ import processing.mode.java.preproc.PdePreprocessor.Mode;
/**
* The main error checking service
*/
@SuppressWarnings("unchecked")
public class PreprocessingService {
protected final JavaEditor editor;
@@ -93,7 +92,7 @@ public class PreprocessingService {
private CompletableFuture<PreprocessedSketch> preprocessingTask = new CompletableFuture<>();
private CompletableFuture<?> lastCallback =
new CompletableFuture() {{
new CompletableFuture<Object>() {{
complete(null); // initialization block
}};
@@ -568,8 +567,8 @@ public class PreprocessingService {
}
private List<String> buildSketchLibraryClassPath(JavaMode mode,
List<ImportStatement> programImports) {
static private List<String> buildSketchLibraryClassPath(JavaMode mode,
List<ImportStatement> programImports) {
StringBuilder classPath = new StringBuilder();
programImports.stream()
@@ -590,7 +589,7 @@ public class PreprocessingService {
}
private List<String> buildJavaRuntimeClassPath() {
static private List<String> buildJavaRuntimeClassPath() {
StringBuilder classPath = new StringBuilder();
// Java runtime
@@ -654,7 +653,7 @@ public class PreprocessingService {
/**
* Ignore processing packages, java.*.*. etc.
*/
private boolean ignorableImport(String packageName) {
static private boolean ignorableImport(String packageName) {
return (packageName.startsWith("java.") ||
packageName.startsWith("javax."));
}

View File

@@ -127,7 +127,7 @@ public class Runner implements MessageConsumer {
* Has the user screwed up their hosts file?
* https://github.com/processing/processing/issues/4738
*/
private void checkLocalHost() throws SketchException {
static private void checkLocalHost() throws SketchException {
try {
InetAddress address = InetAddress.getByName("localhost");
if (!address.getHostAddress().equals("127.0.0.1")) {