summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-18 21:55:59 +0100
committer zaaarf <zaaarf@proton.me>2023-03-18 21:55:59 +0100
commitb394f7c5f0db2cf6e4f36ea4609e9b69618a834f (patch)
treebc7c0319da00b9b785edf14f704c71ddd80137a2
parent1c072781f3b49c5bd388f15e787e4aad3ff49059 (diff)
fix: removed redundant loop
-rw-r--r--src/main/java/ftbsc/lll/processor/tools/JavaPoetUtils.java2
1 files changed, 0 insertions, 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(