Permalink
Browse files

HV-575: Avoiding imports due to links in JavaDoc

  • Loading branch information...
1 parent 2262d35 commit 3cc1df9c830c71b7df9095d3cccbe6872c73648f @gunnarmorling committed Apr 12, 2012
@@ -98,7 +98,7 @@
MULTI_VALUED_CONSTRAINT_ANNOTATION,
/**
- * Given annotation is the @Valid annotation.
+ * Given annotation is the {@code @Valid} annotation.
@hferentschik

hferentschik Apr 14, 2012

I think if you are using the fqcn within a {@link } you don't get the import statements, but you have the link.

*/
GRAPH_VALIDATION_ANNOTATION,
@@ -196,7 +196,7 @@ public ConstraintHelper(Types typeUtils, AnnotationApiHelper annotationApiHelper
/**
* Checks, whether the given type element represents a constraint annotation
* or not. That's the case, if the given element is annotated with the
- * {@link Constraint} meta-annotation (which is only allowed at annotation
+ * {@code @Constraint} meta-annotation (which is only allowed at annotation
* declarations).
*
* @param element The element of interest.
@@ -235,7 +235,6 @@ else if ( isGroupSequenceProviderAnnotation( annotationMirror ) ) {
else {
return AnnotationType.NO_CONSTRAINT_ANNOTATION;
}
-
}
/**
@@ -339,7 +338,7 @@ public Boolean visitDeclared(DeclaredType constraintValidatorImplementation, Voi
/**
* Checks, whether the given annotation mirror represents a constraint
* annotation or not. That's the case, if the given mirror is annotated with
- * the {@link Constraint} meta-annotation (which is only allowed at
+ * the {@code @Constraint} meta-annotation (which is only allowed at
* annotation declarations).
*
* @param annotationMirror The annotation mirror of interest.
@@ -352,12 +351,12 @@ private boolean isConstraintAnnotation(AnnotationMirror annotationMirror) {
}
/**
- * Checks, whether the given annotation mirror represents the {@link javax.validation.Constraint}
@hferentschik

hferentschik Apr 14, 2012

This for example should be fine, I think

@hferentschik

hferentschik Apr 14, 2012

Forget what I just said. I get it now, validator and co are test dependencies and javax.validation are not on the classpath for runtime classes

+ * Checks, whether the given annotation mirror represents the {@code @Constraint}
* meta-annotation or not.
*
* @param annotationMirror The annotation mirror of interest.
*
- * @return True, if the given mirror represents the @Constraint meta-annotation
+ * @return True, if the given mirror represents the {@code @Constraint} meta-annotation
* type, false otherwise.
*/
private boolean isConstraintMetaAnnotation(AnnotationMirror annotationMirror) {
@@ -410,11 +409,11 @@ public Boolean visitAnnotation(
}
/**
- * Checks, whether the given mirror represents the {@link Valid} annotation.
+ * Checks, whether the given mirror represents the {@code Valid} annotation.
*
* @param annotationMirror The annotation mirror of interest.
*
- * @return True, if the given mirror represents the @Valid annotation, false
+ * @return True, if the given mirror represents the {@code Valid} annotation, false
* otherwise.
*/
private boolean isGraphValidationAnnotation(
@@ -427,11 +426,11 @@ private boolean isGraphValidationAnnotation(
}
/**
- * Checks, whether the given mirror represents the {@link GroupSequenceProvider} annotation.
+ * Checks, whether the given mirror represents the {@code @GroupSequenceProvider} annotation.
*
* @param annotationMirror The annotation mirror of interest.
*
- * @return True, if the given mirror represents the @GroupSequenceProvider annotation, false
+ * @return True, if the given mirror represents the {@code @GroupSequenceProvider} annotation, false
* otherwise.
*/
private boolean isGroupSequenceProviderAnnotation(
@@ -595,15 +594,15 @@ private TypeMirror getConstraintValidatorSuperType(TypeMirror type) {
}
/**
- * Retrieves the {@link Constraint} meta-annotation from the given
+ * Retrieves the {@code @Constraint} meta-annotation from the given
* constraint annotation.
*
* @param annotationType A constraint type.
*
* @return The Constraint meta-annotation.
*
* @throws IllegalArgumentException If the given constraint annotation type isn't annotated with
- * the {@link Constraint} meta-annotation.
+ * the {@code @Constraint} meta-annotation.
*/
private AnnotationMirror getConstraintMetaAnnotation(DeclaredType annotationType) {

0 comments on commit 3cc1df9

Please sign in to comment.