Class FileManagers

java.lang.Object
com.google.errorprone.FileManagers

public final class FileManagers
extends Object
Manages JavacFileManagers for use in Error Prone's test.

The file manager does some expensive IO to process the platform and user classpaths, so we re-use the same filemanager instance across multiple tests to re-use that work.

  • Method Details

    • testFileManager

      public static com.sun.tools.javac.file.JavacFileManager testFileManager()
      Returns a JavacFileManager for use in compiler-based tests.