Skip to content

Commit

Permalink
Merge pull request #5398 from machi1990/refactor/remove-validate-meth…
Browse files Browse the repository at this point in the history
…od-from-spring-web-extension

refactor(spring-web): remove validate method after actual validation were removed
  • Loading branch information
geoand committed Nov 13, 2019
2 parents 84f9ab8 + 8a693a9 commit 76f0d79
Showing 1 changed file with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ public void process(BeanArchiveIndexBuildItem beanArchiveIndexBuildItem,
return;
}

validate(annotations);

final Set<String> classNames = new HashSet<>();
for (AnnotationInstance annotation : annotations) {
classNames.add(annotation.target().asClass().toString());
Expand All @@ -185,25 +183,6 @@ public void accept(ResteasyDeployment resteasyDeployment) {
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, false, SpringResourceBuilder.class.getName()));
}

private void validate(Collection<AnnotationInstance> restControllerInstances) {
for (AnnotationInstance restControllerInstance : restControllerInstances) {
ClassInfo restControllerClass = restControllerInstance.target().asClass();

Map<DotName, List<AnnotationInstance>> annotations = restControllerClass.annotations();
for (Map.Entry<DotName, List<AnnotationInstance>> entry : annotations.entrySet()) {
DotName dotName = entry.getKey();
if (PATH_VARIABLE.equals(dotName)) {
List<AnnotationInstance> 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,
Expand Down

0 comments on commit 76f0d79

Please sign in to comment.