Skip to content

Commit

Permalink
Fix AnnotationValue methods names and Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenneg committed Feb 6, 2020
1 parent 4545b83 commit a2e78f7
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/main/java/org/jboss/jandex/AnnotationValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,27 @@ public static AnnotationValue createFloatValue(String name, float f) {
return new FloatValue(name, f);
}

/**
* @deprecated Use {@link #createDoubleValue(String, double)} instead.
*/
@Deprecated
public static AnnotationValue createDouleValue(String name, double d) {
return createDoubleValue(name, d);
}

public static AnnotationValue createDoubleValue(String name, double d) {
return new DoubleValue(name, d);
}

/**
* @deprecated Use {@link #createLongValue(String, long)} instead.
*/
@Deprecated
public static AnnotationValue createLongalue(String name, long l) {
return createLongValue(name, l);
}

public static AnnotationValue createLongValue(String name, long l) {
return new LongValue(name, l);
}

Expand Down Expand Up @@ -474,7 +490,7 @@ public DotName[] asEnumTypeArray() {

/**
* Returns an array of class types representing the underlying class array value.
* Each element has the same behavior as @{link {@link #asClass()}
* Each element has the same behavior as {@link #asClass()}
*
* @return a class array representing this class array value
* @throws IllegalArgumentException if the value is not a class array
Expand All @@ -485,7 +501,7 @@ public Type[] asClassArray() {

/**
* Returns an array of nested annotations representing the underlying annotation array value.
* Each element has the same behavior as @{link {@link #asNested()}
* Each element has the same behavior as {@link #asNested()}
*
* @return an annotation array representing this annotation array value
* @throws IllegalArgumentException if the value is not an annotation array
Expand Down

0 comments on commit a2e78f7

Please sign in to comment.