From 09a9d8980b0186e7e5e17c14ef651a9684bc8651 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 16 Jun 2022 22:34:24 +0200 Subject: [PATCH] Fix Validator api for varargs --- src/de/steamwar/command/SWCommandUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/de/steamwar/command/SWCommandUtils.java b/src/de/steamwar/command/SWCommandUtils.java index 4756630..d6164cb 100644 --- a/src/de/steamwar/command/SWCommandUtils.java +++ b/src/de/steamwar/command/SWCommandUtils.java @@ -169,9 +169,6 @@ public class SWCommandUtils { public static AbstractValidator getValidator(Parameter parameter, Map> localValidator) { Class clazz = parameter.getType(); - if (parameter.isVarArgs()) { - clazz = clazz.getComponentType(); - } AbstractSWCommand.ClassValidator classValidator = parameter.getAnnotation(AbstractSWCommand.ClassValidator.class); if (classValidator != null) {