Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Oct 17, 2024
1 parent 75008ea commit 308c60d
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.context.Dependent;
import jakarta.enterprise.inject.Produces;
import jakarta.enterprise.inject.spi.InjectionPoint;
import jakarta.inject.Inject;

import org.jboss.jandex.AnnotationInstance;
import org.jboss.jandex.AnnotationTarget;
Expand Down Expand Up @@ -75,11 +73,9 @@ class OmnifacesProcessor {
static final DotName OMNIFACES_STARTUP = DotName.createSimple(Startup.class.getName());
static final DotName OMNIFACES_EAGER = DotName.createSimple(Eager.class.getName());
static final DotName OMNIFACES_PARAM = DotName.createSimple(Param.class.getName());
static final DotName INJECT_ANNOTATION = DotName.createSimple(Inject.class.getName());
static final DotName PRODUCES_ANNOTATION = DotName.createSimple(Produces.class.getName());
static final DotName INJECTION_POINT = DotName.createSimple(InjectionPoint.class.getName());

private static final Class[] BEAN_CLASSES = {
private static final Class<?>[] BEAN_CLASSES = {
EagerBeansRepository.class,
ValidatorManager.class,
ViewScopeManager.class,
Expand Down Expand Up @@ -251,7 +247,7 @@ public void transform(AnnotationsTransformer.TransformationContext ctx) {

/**
* Inspects injection points for @Param annotations and creates synthetic beans for each required type.
*
* <p>
* This method performs the following steps:
* 1. Iterates through all injection points to find those annotated with @Param.
* 2. Collects the required types for these injection points.
Expand Down Expand Up @@ -319,4 +315,4 @@ public List<String> collectImplementors(CombinedIndexBuildItem combinedIndex, St
classes.add(className);
return classes;
}
}
}

0 comments on commit 308c60d

Please sign in to comment.