fix: removed redundant loop

This commit is contained in:
zaaarf 2023-03-18 21:55:59 +01:00
parent 1c072781f3
commit b394f7c5f0
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -130,8 +130,6 @@ public class JavaPoetUtils {
else { else {
ArrayContainer arr = new ArrayContainer(t); ArrayContainer arr = new ArrayContainer(t);
TypeName type = TypeName.get(arr.innermostComponent); TypeName type = TypeName.get(arr.innermostComponent);
while(type instanceof ArrayTypeName)
type = ((ArrayTypeName) type).componentType;
if(type instanceof ParameterizedTypeName) if(type instanceof ParameterizedTypeName)
type = ((ParameterizedTypeName) type).rawType; type = ((ParameterizedTypeName) type).rawType;
b.addStatement( b.addStatement(