@@ -491,10 +491,10 @@ void copyNonannotatedToAnnotatedDirectory(String testdir) {
491491 into(file(" tests/${ testdir} /annotated" ))
492492 filter { String line ->
493493 (line. contains(" // :: error:" )
494- // Don't remove unchecked cast warnings, because they're genuinely expected in some all-systems
495- // tests, such as GenericsCasts.java.
496- || (line. contains(" // :: warning:" ) && ! line. contains(" // :: warning: [unchecked]" )))
497- ? null : line
494+ // Don't remove unchecked cast warnings, because they're genuinely expected in some all-systems
495+ // tests, such as GenericsCasts.java.
496+ || (line. contains(" // :: warning:" ) && ! line. contains(" // :: warning: [unchecked]" )))
497+ ? null : line
498498 }
499499 }
500500 // The only file for which expected errors are maintained is ExpectedErrors.java, so we copy it over.
@@ -950,22 +950,22 @@ tasks.register("wpiManyTest", Exec) {
950950 if (
951951 // Ignore the line that WPI echoes with the javac command being run.
952952 line. startsWith(" Running " )
953- // Warnings about bad path elements aren't related to WPI and are ignored.
954- || line. startsWith(" warning: [path]" )
955- // Ignore bootstrap classpath warning:
956- || line. startsWith(" warning: [options] bootstrap" )
957- // Ignore the warnings about --add-opens arguments to the JVM
958- || line. contains(" warning: [options] --add-opens has no effect at compile time" )
959- // Ignore warning about using -source; should use --release instead.
960- || line. equals(" warning: [options] system modules path not set in conjunction with -source 11" )
961- // Ignore the summary line that reports the total number of warnings (which can be single or plural).
962- || line. endsWith(" warning" )
963- || line. endsWith(" warnings" )
964- || line. startsWith(" warning: No processor claimed any of these annotations: " )
965- // Ignore debugging output with the prefix "DEBUG: ".
966- || line. startsWith(" DEBUG: " )
967- || line. startsWith(" warning: DEBUG: " )
968- || line. contains(" warning: [DEBUG: " )) {
953+ // Warnings about bad path elements aren't related to WPI and are ignored.
954+ || line. startsWith(" warning: [path]" )
955+ // Ignore bootstrap classpath warning:
956+ || line. startsWith(" warning: [options] bootstrap" )
957+ // Ignore the warnings about --add-opens arguments to the JVM
958+ || line. contains(" warning: [options] --add-opens has no effect at compile time" )
959+ // Ignore warning about using -source; should use --release instead.
960+ || line. equals(" warning: [options] system modules path not set in conjunction with -source 11" )
961+ // Ignore the summary line that reports the total number of warnings (which can be single or plural).
962+ || line. endsWith(" warning" )
963+ || line. endsWith(" warnings" )
964+ || line. startsWith(" warning: No processor claimed any of these annotations: " )
965+ // Ignore debugging output with the prefix "DEBUG: ".
966+ || line. startsWith(" DEBUG: " )
967+ || line. startsWith(" warning: DEBUG: " )
968+ || line. contains(" warning: [DEBUG: " )) {
969969 return
970970 }
971971 if (! line. trim(). equals(" " )) {
0 commit comments