Skip to content

Commit e683d04

Browse files
committed
deal with a handful of warnings
1 parent 98d6740 commit e683d04

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

java/src/processing/mode/java/Debugger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ private void loge(String msg, Throwable t) {
14071407
}
14081408

14091409

1410-
private void logitse(Throwable t) {
1410+
static private void logitse(Throwable t) {
14111411
Messages.loge("incompatible thread state?", t);
14121412
}
14131413

java/src/processing/mode/java/pdex/PreprocessingService.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
/**
7373
* The main error checking service
7474
*/
75-
@SuppressWarnings("unchecked")
7675
public class PreprocessingService {
7776

7877
protected final JavaEditor editor;
@@ -93,7 +92,7 @@ public class PreprocessingService {
9392
private CompletableFuture<PreprocessedSketch> preprocessingTask = new CompletableFuture<>();
9493

9594
private CompletableFuture<?> lastCallback =
96-
new CompletableFuture() {{
95+
new CompletableFuture<Object>() {{
9796
complete(null); // initialization block
9897
}};
9998

@@ -568,8 +567,8 @@ private static List<String> buildSearchLibraryClassPath(JavaMode mode) {
568567
}
569568

570569

571-
private List<String> buildSketchLibraryClassPath(JavaMode mode,
572-
List<ImportStatement> programImports) {
570+
static private List<String> buildSketchLibraryClassPath(JavaMode mode,
571+
List<ImportStatement> programImports) {
573572
StringBuilder classPath = new StringBuilder();
574573

575574
programImports.stream()
@@ -590,7 +589,7 @@ private List<String> buildSketchLibraryClassPath(JavaMode mode,
590589
}
591590

592591

593-
private List<String> buildJavaRuntimeClassPath() {
592+
static private List<String> buildJavaRuntimeClassPath() {
594593
StringBuilder classPath = new StringBuilder();
595594

596595
// Java runtime
@@ -654,7 +653,7 @@ private static CompilationUnit makeASTWithBindings(ASTParser parser,
654653
/**
655654
* Ignore processing packages, java.*.*. etc.
656655
*/
657-
private boolean ignorableImport(String packageName) {
656+
static private boolean ignorableImport(String packageName) {
658657
return (packageName.startsWith("java.") ||
659658
packageName.startsWith("javax."));
660659
}

java/src/processing/mode/java/runner/Runner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Runner(JavaBuild build, RunnerListener listener) throws SketchException {
127127
* Has the user screwed up their hosts file?
128128
* https://github.com/processing/processing/issues/4738
129129
*/
130-
private void checkLocalHost() throws SketchException {
130+
static private void checkLocalHost() throws SketchException {
131131
try {
132132
InetAddress address = InetAddress.getByName("localhost");
133133
if (!address.getHostAddress().equals("127.0.0.1")) {

0 commit comments

Comments
 (0)