7272/**
7373 * The main error checking service
7474 */
75- @ SuppressWarnings ("unchecked" )
7675public 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 }
0 commit comments