From b394f7c5f0db2cf6e4f36ea4609e9b69618a834f Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 18 Mar 2023 21:55:59 +0100 Subject: [PATCH] fix: removed redundant loop --- src/main/java/ftbsc/lll/processor/tools/JavaPoetUtils.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/ftbsc/lll/processor/tools/JavaPoetUtils.java b/src/main/java/ftbsc/lll/processor/tools/JavaPoetUtils.java index 725e258..d59bc11 100644 --- a/src/main/java/ftbsc/lll/processor/tools/JavaPoetUtils.java +++ b/src/main/java/ftbsc/lll/processor/tools/JavaPoetUtils.java @@ -130,8 +130,6 @@ public class JavaPoetUtils { else { ArrayContainer arr = new ArrayContainer(t); TypeName type = TypeName.get(arr.innermostComponent); - while(type instanceof ArrayTypeName) - type = ((ArrayTypeName) type).componentType; if(type instanceof ParameterizedTypeName) type = ((ParameterizedTypeName) type).rawType; b.addStatement(