Skip to content

Commit

Permalink
Merge pull request #55
Browse files Browse the repository at this point in the history
Fixed code formatting
  • Loading branch information
eddiecarpenter authored Sep 29, 2024
2 parents b559d95 + 3ec0756 commit d1506e6
Showing 1 changed file with 8 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,34 +134,25 @@ public void discoverInjectedClients(DiameterRecorder recorder,
BuildProducer<DiameterBuildItem> diameterStacks)
{
Set<String> 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);
}

Expand Down Expand Up @@ -191,8 +182,7 @@ public ServiceStartBuildItem generateDiameterConfiguration(List<DiameterBuildIte
createSyntheticBean(stack.getName(),
Stack.class,
DOTNAME_STACK,
stack.getName()
.equals(DiameterConfig.DEFAULT_CONFIG_NAME))
stack.getName().equals(DiameterConfig.DEFAULT_CONFIG_NAME))
.runtimeValue(stack.getStack())
.done());

Expand Down

0 comments on commit d1506e6

Please sign in to comment.