src/share/classes/com/sun/tools/javac/comp/Check.java

changeset 582
366a7b9b5627
parent 581
f2fdd52e4e87
child 598
064468702a8d
equal deleted inserted replaced
581:f2fdd52e4e87 582:366a7b9b5627
155 155
156 /** A handler for messages about unchecked or unsafe vararg method decl. 156 /** A handler for messages about unchecked or unsafe vararg method decl.
157 */ 157 */
158 private MandatoryWarningHandler unsafeVarargsHandler; 158 private MandatoryWarningHandler unsafeVarargsHandler;
159 159
160 /** A handler for messages about using Sun proprietary API. 160 /** A handler for messages about using proprietary API.
161 */ 161 */
162 private MandatoryWarningHandler sunApiHandler; 162 private MandatoryWarningHandler sunApiHandler;
163 163
164 /* ************************************************************************* 164 /* *************************************************************************
165 * Errors and Warnings 165 * Errors and Warnings
196 void warnUnsafeVararg(DiagnosticPosition pos, Type elemType) { 196 void warnUnsafeVararg(DiagnosticPosition pos, Type elemType) {
197 if (!lint.isSuppressed(LintCategory.VARARGS)) 197 if (!lint.isSuppressed(LintCategory.VARARGS))
198 unsafeVarargsHandler.report(pos, "varargs.non.reifiable.type", elemType); 198 unsafeVarargsHandler.report(pos, "varargs.non.reifiable.type", elemType);
199 } 199 }
200 200
201 /** Warn about using Sun proprietary API. 201 /** Warn about using proprietary API.
202 * @param pos Position to be used for error reporting. 202 * @param pos Position to be used for error reporting.
203 * @param msg A string describing the problem. 203 * @param msg A string describing the problem.
204 */ 204 */
205 public void warnSunApi(DiagnosticPosition pos, String msg, Object... args) { 205 public void warnSunApi(DiagnosticPosition pos, String msg, Object... args) {
206 if (!lint.isSuppressed(LintCategory.SUNAPI)) 206 if (!lint.isSuppressed(LintCategory.SUNAPI))

mercurial