Skip to content

Commit

Permalink
Further startup optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Feb 27, 2019
1 parent 77ebe34 commit 2d0deb2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
import io.micronaut.core.reflect.ReflectionUtils;
import io.micronaut.core.util.StringUtils;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.inject.*;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
Expand Down Expand Up @@ -53,6 +57,10 @@ class AnnotationMetadataSupport {
static {
// some common ones for startup optimization
Arrays.asList(
Nullable.class,
Nonnull.class,
PreDestroy.class,
PostConstruct.class,
Named.class,
Singleton.class,
Inject.class,
Expand Down

0 comments on commit 2d0deb2

Please sign in to comment.