Skip to content

Commit

Permalink
fix infinite recursion bug on methodcall (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
HliasMpGH authored Jun 4, 2024
1 parent 036c30a commit c542195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/squareup/javapoet/TypeSpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ public Builder addSuperinterface(Type superinterface, boolean avoidNestedTypeNam
public Builder addPermits(Iterable<? extends TypeName> permits) {
checkArgument(permits != null, "permits == null");
for (TypeName permit : permits) {
addPermits(permits);
addPermits(permit);
}
return this;
}
Expand Down

0 comments on commit c542195

Please sign in to comment.