private static Supplier<CodeTransformer> scansPlugins( ScannerSupplier scannerSupplier, ErrorProneOptions errorProneOptions, Context context) { return Suppliers.memoize( () -> { // we can't load plugins from the processorpath until the filemanager has been // initialized, so do it lazily try { return ErrorProneScannerTransformer.create( ErrorPronePlugins.loadPlugins(scannerSupplier, context) .applyOverrides(errorProneOptions) .get()); } catch (InvalidCommandLineOptionException e) { throw new PropagatedException(e); } }); }
throw ex.getCause(); } catch (Throwable ex) {
throw ex.getCause(); } catch (Throwable ex) {
/** Report a usage error. */ void error(String key, Object... args) { if (apiMode) { String msg = log.localize(PrefixKind.JAVAC, key, args); throw new PropagatedException(new IllegalStateException(msg)); } warning(key, args); log.printLines(PrefixKind.JAVAC, "msg.usage", ownName); }
throw ex.getCause(); } catch (Throwable ex) {
/** Report a usage error. */ void error(String key, Object... args) { if (apiMode) { String msg = log.localize(PrefixKind.JAVAC, key, args); throw new PropagatedException(new IllegalStateException(msg)); } warning(key, args); log.printLines(PrefixKind.JAVAC, "msg.usage", ownName); }
throw ex.getCause(); } catch (Throwable ex) {
/** Report a usage error. */ void error(String key, Object... args) { if (fatalErrors) { String msg = getLocalizedString(key, args); throw new PropagatedException(new IllegalStateException(msg)); } warning(key, args); Log.printLines(out, getLocalizedString("msg.usage", ownName)); }
/** Report a usage error. */ void error(String key, Object... args) { if (fatalErrors) { String msg = getLocalizedString(key, args); throw new PropagatedException(new IllegalStateException(msg)); } warning(key, args); Log.printLines(out, getLocalizedString("msg.usage", ownName)); }
private static Supplier<CodeTransformer> scansPlugins( ScannerSupplier scannerSupplier, ErrorProneOptions errorProneOptions, Context context) { return Suppliers.memoize( () -> { // we can't load plugins from the processorpath until the filemanager has been // initialized, so do it lazily try { return ErrorProneScannerTransformer.create( ErrorPronePlugins.loadPlugins(scannerSupplier, context) .applyOverrides(errorProneOptions) .get()); } catch (InvalidCommandLineOptionException e) { throw new PropagatedException(e); } }); }