langtools/src/share/classes/com/sun/tools/javac/comp/Check.java
changeset 5848 c5a4ce47e780
parent 5847 1908176fd6e3
child 6032 03b276d8e6a6
equal deleted inserted replaced
5847:1908176fd6e3 5848:c5a4ce47e780
   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))