--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Check.java Tue Oct 09 19:10:00 2012 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Check.java Tue Oct 09 19:31:58 2012 -0700
@@ -230,7 +230,6 @@
/** Warn about unsafe vararg method decl.
* @param pos Position to be used for error reporting.
- * @param sym The deprecated symbol.
*/
void warnUnsafeVararg(DiagnosticPosition pos, String key, Object... args) {
if (lint.isEnabled(LintCategory.VARARGS) && allowSimplifiedVarargs)
@@ -397,7 +396,7 @@
**************************************************************************/
/** Return name of local class.
- * This is of the form <enclClass> $ n <classname>
+ * This is of the form {@code <enclClass> $ n <classname> }
* where
* enclClass is the flat name of the enclosing class,
* classname is the simple name of the local class
@@ -600,11 +599,10 @@
/** Check that a type is within some bounds.
*
- * Used in TypeApply to verify that, e.g., X in V<X> is a valid
+ * Used in TypeApply to verify that, e.g., X in {@code V<X>} is a valid
* type argument.
- * @param pos Position to be used for error reporting.
* @param a The type that should be bounded by bs.
- * @param bs The bound.
+ * @param bound The bound.
*/
private boolean checkExtends(Type a, Type bound) {
if (a.isUnbound()) {
@@ -1262,8 +1260,10 @@
* their bounds. This must be done in a second phase after type attributon
* since a class might have a subclass as type parameter bound. E.g:
*
+ * <pre>{@code
* class B<A extends C> { ... }
* class C extends B<C> { ... }
+ * }</pre>
*
* and we can't make sure that the bound is already attributed because
* of possible cycles.
@@ -2574,7 +2574,7 @@
* 'pos'.
*
* @param s The (annotation)type declaration annotated with a @ContainedBy
- * @param containerAnno the @ContainedBy on 's'
+ * @param containedBy the @ContainedBy on 's'
* @param pos where to report errors
*/
public void validateContainedBy(TypeSymbol s, Attribute.Compound containedBy, DiagnosticPosition pos) {
@@ -3181,7 +3181,6 @@
* @param pos Position for error reporting.
* @param sym The symbol.
* @param s The scope
- * @param staticImport Whether or not this was a static import
*/
boolean checkUniqueStaticImport(DiagnosticPosition pos, Symbol sym, Scope s) {
return checkUniqueImport(pos, sym, s, true);