Skip to content

Commit

Permalink
Change queried collection to allow null value
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Nov 6, 2022
1 parent 1ec2ca6 commit 2b925c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand All @@ -41,12 +43,12 @@
*/
public class ComponentDefinition implements ComponentInfo {

private static final Set<String> EXCLUDED_FROM_ANNOTATION_PROCESSING = Set.of(
private static final Set<String> EXCLUDED_FROM_ANNOTATION_PROCESSING = Collections.unmodifiableSet(new HashSet<>(Set.of(
"jakarta.servlet.GenericServlet",
"jakarta.servlet.http.HttpServlet",
"org.glassfish.wasp.servlet.JspServlet",
"org.apache.catalina.servlets.DefaultServlet"
);
)));

private final Class<?> clazz;
private final List<Constructor<?>> constructors = new ArrayList<>();
Expand Down

0 comments on commit 2b925c9

Please sign in to comment.