langtools/test/tools/javac/warnings/suppress/VerifySuppressWarnings.java
changeset 27226 53535e4e1b08
parent 27225 8369cde9152a
child 27852 2e6ad0e4fe20
equal deleted inserted replaced
27225:8369cde9152a 27226:53535e4e1b08
    72         JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null);
    72         JavacFileManager fm = JavacTool.create().getStandardFileManager(null, null, null);
    73         for (File sp : sourcePath) {
    73         for (File sp : sourcePath) {
    74             File inp = new File(sp, args[0]);
    74             File inp = new File(sp, args[0]);
    75 
    75 
    76             if (inp.canRead()) {
    76             if (inp.canRead()) {
    77                 testContent = fm.getRegularFile(inp.toPath()).getCharContent(true).toString();
    77                 testContent = fm.getRegularFile(inp).getCharContent(true).toString();
    78             }
    78             }
    79         }
    79         }
    80         if (testContent == null) throw new IllegalStateException();
    80         if (testContent == null) throw new IllegalStateException();
    81         final List<Diagnostic<?>> diagnostics = new ArrayList<>();
    81         final List<Diagnostic<?>> diagnostics = new ArrayList<>();
    82         DiagnosticListener<JavaFileObject> collectDiagnostics = new DiagnosticListener<JavaFileObject>() {
    82         DiagnosticListener<JavaFileObject> collectDiagnostics = new DiagnosticListener<JavaFileObject>() {