Skip to content

Commit

Permalink
rebase refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
trentjeff committed May 4, 2023
1 parent 47d2ce3 commit 59eb47f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ public static Optional<TypedElementName> createTypedElementNameFromElement(Eleme
.annotations(createAnnotationAndValueListFromElement(v, elements))
.elementTypeAnnotations(elementTypeAnnotations)
.modifierNames(modifierNames)
.parameterArgumentss(params);
.parameterArguments(params);
createTypeNameFromElement(v.getEnclosingElement()).ifPresent(builder::enclosingTypeName);
Optional.ofNullable(defaultValue).ifPresent(builder::defaultValue);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,28 +375,6 @@ public Builder addParameterArgument(TypedElementName val) {
return this;
}

/**
* Set the enclosing type name.
*
* @param val the type name value
* @return this fluent builder
*/
public Builder enclosingTypeName(TypeName val) {
Objects.requireNonNull(val);
this.enclosingTypeName = val;
return this;
}

/**
* Set the enclosing type of the element.
*
* @param val the type
* @return the fluent builder
*/
public Builder enclosingTypeName(Class<?> val) {
return enclosingTypeName(TypeNameDefault.create(val));
}

/**
* Build the instance.
*
Expand Down

0 comments on commit 59eb47f

Please sign in to comment.