Skip to content

Commit

Permalink
Deprecate a couple more methods in ReflectiveHierarchyBuildItem.Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Jun 7, 2024
1 parent 72e9862 commit aeeaa55
Showing 1 changed file with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public static Builder builder(DotName className) {
* @return a new {@link Builder} instance, initialized from the specified {@link Type}
*/
public static Builder builder(Type type) {
return new Builder().type(type);
return new Builder(type);
}

public static class Builder {
Expand All @@ -205,10 +205,23 @@ public static class Builder {
private String source = UNKNOWN_SOURCE;
private boolean serialization;

/**
* @deprecated use {@link ReflectiveHierarchyBuildItem#builder(Type)},
* {@link ReflectiveHierarchyBuildItem#builder(String)} or
* {@link ReflectiveHierarchyBuildItem#builder(DotName)} instead
*/
@Deprecated(since = "3.12", forRemoval = true)
public Builder() {
}

private Builder(Type type) {
this.type = type;
}

/**
* @deprecated use {@link ReflectiveHierarchyBuildItem#builder(Type)} instead
*/
@Deprecated
@Deprecated(since = "3.12", forRemoval = true)
public Builder type(Type type) {
this.type = type;
return this;
Expand All @@ -219,7 +232,9 @@ public Builder type(Type type) {
*
* @param className a {@link DotName} representing the name of the class of the Type to be registered for reflection
* @return this {@link Builder} instance
* @deprecated use {@link ReflectiveHierarchyBuildItem#builder(DotName)} instead
*/
@Deprecated(since = "3.12", forRemoval = true)
public Builder className(DotName className) {
return type(Type.create(className, Type.Kind.CLASS));
}
Expand All @@ -229,7 +244,9 @@ public Builder className(DotName className) {
*
* @param className the name of the class of the Type to be registered for reflection
* @return this {@link Builder} instance
* @deprecated use {@link ReflectiveHierarchyBuildItem#builder(String)} instead
*/
@Deprecated(since = "3.12", forRemoval = true)
public Builder className(String className) {
return className(DotName.createSimple(className));
}
Expand Down

0 comments on commit aeeaa55

Please sign in to comment.