Skip to content

Commit

Permalink
Improve WildcardType javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Sep 18, 2024
1 parent ca7a4dc commit 77f0532
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/main/java/org/jboss/jandex/WildcardType.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class WildcardType extends Type {
* Creates a new wildcard type.
*
* @param bound the bound (lower or upper)
* @param isExtends true if the bound is an upper (extends) bound, false if lower (super)
* @param isExtends true if the bound is an upper ({@code extends}) bound, false if lower ({@code super})
* @return the new instance
*
* @since 2.1
Expand All @@ -50,7 +50,7 @@ public static WildcardType create(Type bound, boolean isExtends) {
}

/**
* Create a new wildcard type with an upper bound.
* Create a new wildcard type with an upper ({@code extends}) bound.
*
* @param upperBound the upper bound
* @return the new instance
Expand All @@ -61,7 +61,7 @@ public static WildcardType createUpperBound(Type upperBound) {
}

/**
* Create a new wildcard type with an upper bound.
* Create a new wildcard type with an upper ({@code extends}) bound.
*
* @param upperBound the upper bound
* @return the new instance
Expand All @@ -72,7 +72,7 @@ public static WildcardType createUpperBound(Class<?> upperBound) {
}

/**
* Create a new wildcard type with a lower bound.
* Create a new wildcard type with a lower ({@code super}) bound.
*
* @param lowerBound the lower bound
* @return the new instance
Expand All @@ -83,7 +83,7 @@ public static WildcardType createLowerBound(Type lowerBound) {
}

/**
* Create a new wildcard type with a lower bound.
* Create a new wildcard type with a lower ({@code super}) bound.
*
* @param lowerBound the lower bound
* @return the new instance
Expand Down Expand Up @@ -146,7 +146,7 @@ public Type extendsBound() {
* Returns {@code null} if this wildcard declares an upper bound
* ({@code ? extends SomeType}).
*
* @return the lower bound, or {@code null} if this wildcard has an uper bound
* @return the lower bound, or {@code null} if this wildcard has an upper bound
*/
public Type superBound() {
return isExtends ? null : bound;
Expand Down

0 comments on commit 77f0532

Please sign in to comment.