From 8a693a97ef1bb97a4f384684d3a3ec3294b61f34 Mon Sep 17 00:00:00 2001 From: Manyanda Chitimbo Date: Tue, 12 Nov 2019 12:36:31 +0100 Subject: [PATCH] refactor(spring-web): remove validate method after actual validation were removed The actual validations were removed in 6a6d989d190c6cde080da72e9e37c1d4523e9a2e and bad1edcd2a2e0bc8586f38cab664b19d646987e3 --- .../web/deployment/SpringWebProcessor.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/extensions/spring-web/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java b/extensions/spring-web/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java index aabae4f9d5e4e..a151226fb5f2c 100644 --- a/extensions/spring-web/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java +++ b/extensions/spring-web/deployment/src/main/java/io/quarkus/spring/web/deployment/SpringWebProcessor.java @@ -161,8 +161,6 @@ public void process(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem, return; } - validate(annotations); - final Set classNames = new HashSet<>(); for (AnnotationInstance annotation : annotations) { classNames.add(annotation.target().asClass().toString()); @@ -185,25 +183,6 @@ public void accept(ResteasyDeployment resteasyDeployment) { reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, false, SpringResourceBuilder.class.getName())); } - private void validate(Collection restControllerInstances) { - for (AnnotationInstance restControllerInstance : restControllerInstances) { - ClassInfo restControllerClass = restControllerInstance.target().asClass(); - - Map> annotations = restControllerClass.annotations(); - for (Map.Entry> entry : annotations.entrySet()) { - DotName dotName = entry.getKey(); - if (PATH_VARIABLE.equals(dotName)) { - List pathVariableInstances = entry.getValue(); - for (AnnotationInstance pathVariableInstance : pathVariableInstances) { - if (pathVariableInstance.target().kind() != AnnotationTarget.Kind.METHOD_PARAMETER) { - continue; - } - } - } - } - } - } - @BuildStep(onlyIf = IsDevelopment.class) @Record(STATIC_INIT) public void registerWithDevModeNotFoundMapper(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem,