mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
deal with a handful of warnings
This commit is contained in:
@@ -1407,7 +1407,7 @@ public class Debugger {
|
||||
}
|
||||
|
||||
|
||||
private void logitse(Throwable t) {
|
||||
static private void logitse(Throwable t) {
|
||||
Messages.loge("incompatible thread state?", t);
|
||||
}
|
||||
|
||||
|
||||
@@ -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."));
|
||||
}
|
||||
|
||||
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user