com.sun.tools.javac.util.JCDiagnostic.Note Java Examples
The following examples show how to use
com.sun.tools.javac.util.JCDiagnostic.Note.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Log.java From deptective with Apache License 2.0 | 4 votes |
public void note(String key, Object... params) { // no "raw" API for producing notes; so omitting them on Java 8 if (registeredResourceBundle) { currentLog().note(new Note("compiler", key, params)); } }
Example #2
Source File: AbstractLog.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(Note noteKey) { report(diags.note(source, null, noteKey)); }
Example #3
Source File: AbstractLog.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(DiagnosticPosition pos, Note noteKey) { report(diags.note(source, pos, noteKey)); }
Example #4
Source File: AbstractLog.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(int pos, Note noteKey) { report(diags.note(source, wrap(pos), noteKey)); }
Example #5
Source File: AbstractLog.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(JavaFileObject file, Note noteKey) { report(diags.note(getSource(file), null, noteKey)); }
Example #6
Source File: AbstractLog.java From lua-for-android with BSD 3-Clause "New" or "Revised" License | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void mandatoryNote(final JavaFileObject file, Note noteKey) { report(diags.mandatoryNote(getSource(file), noteKey)); }
Example #7
Source File: Log.java From deptective with Apache License 2.0 | 4 votes |
public void note(String key, Object... params) { // no "raw" API for producing notes; so omitting them on Java 8 if (registeredResourceBundle) { currentLog().note(new Note("compiler", key, params)); } }
Example #8
Source File: AbstractLog.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(Note noteKey) { report(diags.note(source, null, noteKey)); }
Example #9
Source File: AbstractLog.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(DiagnosticPosition pos, Note noteKey) { report(diags.note(source, pos, noteKey)); }
Example #10
Source File: AbstractLog.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(int pos, Note noteKey) { report(diags.note(source, wrap(pos), noteKey)); }
Example #11
Source File: AbstractLog.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void note(JavaFileObject file, Note noteKey) { report(diags.note(getSource(file), null, noteKey)); }
Example #12
Source File: AbstractLog.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** Provide a non-fatal notification, unless suppressed by the -nowarn option. * @param noteKey The key for the localized notification message. */ public void mandatoryNote(final JavaFileObject file, Note noteKey) { report(diags.mandatoryNote(getSource(file), noteKey)); }