diff --git a/src/main/java/com/squareup/javapoet/TypeSpec.java b/src/main/java/com/squareup/javapoet/TypeSpec.java index 44d9bc9..2296129 100644 --- a/src/main/java/com/squareup/javapoet/TypeSpec.java +++ b/src/main/java/com/squareup/javapoet/TypeSpec.java @@ -610,7 +610,7 @@ public Builder addSuperinterface(Type superinterface, boolean avoidNestedTypeNam public Builder addPermits(Iterable permits) { checkArgument(permits != null, "permits == null"); for (TypeName permit : permits) { - addPermits(permits); + addPermits(permit); } return this; }