diff --git a/quarkus-diameter/deployment/src/main/java/io/quarkiverse/diameter/deployment/DiameterProcessor.java b/quarkus-diameter/deployment/src/main/java/io/quarkiverse/diameter/deployment/DiameterProcessor.java index 2dbbbbc5..2a813067 100644 --- a/quarkus-diameter/deployment/src/main/java/io/quarkiverse/diameter/deployment/DiameterProcessor.java +++ b/quarkus-diameter/deployment/src/main/java/io/quarkiverse/diameter/deployment/DiameterProcessor.java @@ -134,34 +134,25 @@ public void discoverInjectedClients(DiameterRecorder recorder, BuildProducer diameterStacks) { Set profileNames = new HashSet<>(); - for (AnnotationInstance annotation : index.getIndex() - .getAnnotations(DOTNAME_DIAMETER_CONFIG)) { + for (AnnotationInstance annotation : index.getIndex().getAnnotations(DOTNAME_DIAMETER_CONFIG)) { if (annotation.value() == null) { profileNames.add(DiameterConfig.DEFAULT_CONFIG_NAME); } else { - profileNames.add((String) annotation.value() - .value()); + profileNames.add((String) annotation.value().value()); } } - for (AnnotationInstance annotation : index.getIndex() - .getAnnotations(DOTNAME_DIAMETER_SERVICE_OPTIONS)) { + for (AnnotationInstance annotation : index.getIndex().getAnnotations(DOTNAME_DIAMETER_SERVICE_OPTIONS)) { if (annotation.value() == null) { profileNames.add(DiameterConfig.DEFAULT_CONFIG_NAME); } else { - profileNames.add((String) annotation.value() - .value()); + profileNames.add((String) annotation.value().value()); } } - for (AnnotationInstance annotation : index.getIndex() - .getAnnotations(DOTNAME_DIAMETER_SERVICE)) { - if (!annotation.target() - .asClass() - .name() - .equals(DOTNAME_DIAMETER_SERVICE_INTERCEPTOR) && - annotation.target() - .annotation(DOTNAME_DIAMETER_SERVICE_OPTIONS) == null) { + for (AnnotationInstance annotation : index.getIndex().getAnnotations(DOTNAME_DIAMETER_SERVICE)) { + if (!annotation.target().asClass().name().equals(DOTNAME_DIAMETER_SERVICE_INTERCEPTOR) && + annotation.target().annotation(DOTNAME_DIAMETER_SERVICE_OPTIONS) == null) { profileNames.add(DiameterConfig.DEFAULT_CONFIG_NAME); } @@ -191,8 +182,7 @@ public ServiceStartBuildItem generateDiameterConfiguration(List