List<Type> argtypes2 = Type.map(argtypes, deferredAttr.new RecoveryDeferredTypeMap(AttrMode.SPECULATIVE, bestSoFar, currentResolutionContext.step)); JCDiagnostic main = diags.note(log.currentSource(), dpos, key, name, site.tsym, mostSpecificPos, currentResolutionContext.step, methodArguments(argtypes2),
List<Type> argtypes2 = Type.map(argtypes, deferredAttr.new RecoveryDeferredTypeMap(AttrMode.SPECULATIVE, bestSoFar, currentResolutionContext.step)); JCDiagnostic main = diags.note(log.currentSource(), dpos, key, name, site.tsym, mostSpecificPos, currentResolutionContext.step, methodArguments(argtypes2),
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void mandatoryNote(final JavaFileObject file, String key, Object ... args) { JCDiagnostic.DiagnosticSource wrapper = null; if (file != null) { wrapper = new JCDiagnostic.DiagnosticSource() { public JavaFileObject getFile() { return file; } public CharSequence getName() { return JavacFileManager.getJavacBaseFileName(getFile()); } public int getLineNumber(int pos) { return Log.this.getLineNumber(pos); } public int getColumnNumber(int pos) { return Log.this.getColumnNumber(pos); } public Map<JCTree, Integer> getEndPosTable() { return (endPosTables == null ? null : endPosTables.get(file)); } }; } if (enforceMandatoryWarnings) report(diags.mandatoryNote(wrapper, key, args)); else report(diags.note(wrapper, null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(int pos, String key, Object ... args) { report(diags.note(source, wrap(pos), key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notint an error or warning message: */ public void note(String key, Object ... args) { report(diags.note(source, null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(DiagnosticPosition pos, String key, Object ... args) { report(diags.note(source, pos, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param file The file to which the note applies. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(JavaFileObject file, String key, Object ... args) { report(diags.note(wrap(file), null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(int pos, String key, Object ... args) { report(diags.note(source, wrap(pos), key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(DiagnosticPosition pos, String key, Object ... args) { report(diags.note(source, pos, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(String key, Object ... args) { report(diags.note(source, null, key, args)); }
/** * Create a note diagnostic. * @param key The key for the localized error message. * @param args Fields of the error message. */ public JCDiagnostic note(String key, Object... args) { return note(null, null, key, args); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(int pos, String key, Object ... args) { report(diags.note(source, wrap(pos), key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(JavaFileObject file, String key, Object ... args) { report(diags.note(getSource(file), null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(int pos, String key, Object ... args) { report(diags.note(source, wrap(pos), key, args)); }
/** * Create a note diagnostic. * @param key The key for the localized error message. * @param args Fields of the error message. */ public JCDiagnostic note(String key, Object... args) { return note(null, null, key, args); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(String key, Object ... args) { report(diags.note(source, null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(DiagnosticPosition pos, String key, Object ... args) { report(diags.note(source, pos, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notint an error or warning message: */ public void note(String key, Object ... args) { report(diags.note(source, null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(JavaFileObject file, String key, Object ... args) { report(diags.note(getSource(file), null, key, args)); }
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param key The key for the localized notification message. * @param args Fields of the notification message. */ public void note(DiagnosticPosition pos, String key, Object ... args) { report(diags.note(source, pos, key, args)); }