langtools/src/share/classes/com/sun/tools/javac/util/JCDiagnostic.java
changeset 14259 fb94a1df0d53
parent 14258 8d2148961366
child 15385 ee1eebe7e210
equal deleted inserted replaced
14258:8d2148961366 14259:fb94a1df0d53
   211 
   211 
   212         /**
   212         /**
   213          * Create a new diagnostic of the given kind, which is not mandatory and which has
   213          * Create a new diagnostic of the given kind, which is not mandatory and which has
   214          * no lint category.
   214          * no lint category.
   215          *  @param kind        The diagnostic kind
   215          *  @param kind        The diagnostic kind
   216          *  @param ls          The lint category, if applicable, or null
       
   217          *  @param source      The source of the compilation unit, if any, in which to report the message.
   216          *  @param source      The source of the compilation unit, if any, in which to report the message.
   218          *  @param pos         The source position at which to report the message.
   217          *  @param pos         The source position at which to report the message.
   219          *  @param key         The key for the localized message.
   218          *  @param key         The key for the localized message.
   220          *  @param args        Fields of the message.
   219          *  @param args        Fields of the message.
   221          */
   220          */
   226 
   225 
   227         /**
   226         /**
   228          * Create a new diagnostic of the given kind.
   227          * Create a new diagnostic of the given kind.
   229          *  @param kind        The diagnostic kind
   228          *  @param kind        The diagnostic kind
   230          *  @param lc          The lint category, if applicable, or null
   229          *  @param lc          The lint category, if applicable, or null
   231          *  @param isMandatory is diagnostic mandatory?
   230          *  @param flags       The set of flags for the diagnostic
   232          *  @param source      The source of the compilation unit, if any, in which to report the message.
   231          *  @param source      The source of the compilation unit, if any, in which to report the message.
   233          *  @param pos         The source position at which to report the message.
   232          *  @param pos         The source position at which to report the message.
   234          *  @param key         The key for the localized message.
   233          *  @param key         The key for the localized message.
   235          *  @param args        Fields of the message.
   234          *  @param args        Fields of the message.
   236          */
   235          */
   361     private final Set<DiagnosticFlag> flags;
   360     private final Set<DiagnosticFlag> flags;
   362     private final LintCategory lintCategory;
   361     private final LintCategory lintCategory;
   363 
   362 
   364     /**
   363     /**
   365      * Create a diagnostic object.
   364      * Create a diagnostic object.
   366      * @param fomatter the formatter to use for the diagnostic
   365      * @param formatter the formatter to use for the diagnostic
   367      * @param dt the type of diagnostic
   366      * @param dt the type of diagnostic
   368      * @param lc     the lint category for the diagnostic
   367      * @param lc     the lint category for the diagnostic
   369      * @param source the name of the source file, or null if none.
   368      * @param source the name of the source file, or null if none.
   370      * @param pos the character offset within the source file, if given.
   369      * @param pos the character offset within the source file, if given.
   371      * @param key a resource key to identify the text of the diagnostic
   370      * @param key a resource key to identify the text of the diagnostic