public static void preRegisterFileManager(Context context) {
    context.put(
        JavaFileManager.class,
        new Context.Factory<JavaFileManager>() {
          @Override
          public JavaFileManager make(Context c) {
            return new MaskedFileManager(c);
          }
        });
  }
public static void preRegisterFileManager ( Context context ) { context . put ( JavaFileManager . class , new Context . Factory < JavaFileManager > ( ) { @ Override public JavaFileManager make ( Context c ) { return new MaskedFileManager ( c ) ; } } ) ; }
An alternative to {@link JavacFileManager#preRegister(Context)} that installs a {@link
MaskedClassLoader}.