Skip to content

Commit

Permalink
#83 - Ignore any @Generated annotation from registration
Browse files Browse the repository at this point in the history
  • Loading branch information
rbygrave committed Dec 8, 2020
1 parent e942653 commit f49f6b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -6,7 +6,7 @@
class IncludeAnnotations {

private static final String[] EXCLUDED_PREFIX = {"javax.annotation.", "javax.inject.", "jakarta.annotation.", "jakarta.inject.", "io.avaje.inject.", "lombok."};
private static final String[] EXCLUDED_SUFFIX = {".PostConstruct", ".PreDestroy"};
private static final String[] EXCLUDED_SUFFIX = {".PostConstruct", ".PreDestroy", ".Generated"};

/**
* Annotations that we don't bother registering lists for.
Expand Down
Expand Up @@ -34,6 +34,7 @@ public void exclude_kotlinMetaData() {
@Test
public void exclude_di_annotations() {
assertFalse(include("javax.annotation.Generated"));
assertFalse(include("foo.Generated"));
assertFalse(include(Singleton.class.getName()));
assertFalse(include(Named.class.getName()));
assertFalse(include(Factory.class.getName()));
Expand Down

0 comments on commit f49f6b4

Please sign in to comment.