Skip to content

Commit 588b175

Browse files
committed
default
1 parent fc0dce6 commit 588b175

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

inject/src/main/java/io/avaje/inject/spi/Builder.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ static Builder newBuilder(Set<String> profiles, ConfigPropertyPlugin plugin, Lis
4646

4747
/**
4848
* Return true if the bean should be created and registered with the context.
49-
* <p/>
50-
* Returning false means there has been a supplied bean already registered and
51-
* that we should skip the creation and registration for this bean.
49+
*
50+
* <p>Returning false means there has been a supplied bean already registered and that we should
51+
* skip the creation and registration for this bean.
5252
*
5353
* @param types The types that the bean implements and provides
5454
*/
55-
boolean isBeanAbsent(Type... types);
55+
default boolean isBeanAbsent(Type... types) {
56+
return isBeanAbsent(null, types);
57+
}
5658

5759
/**
5860
* Return true if the bean should be created and registered with the context.

inject/src/main/java/io/avaje/inject/spi/DBuilder.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ public void currentModule(Class<? extends AvajeModule> currentModule) {
4848
beanMap.currentModule(currentModule);
4949
}
5050

51-
@Override
52-
public final boolean isBeanAbsent(Type... types) {
53-
return isBeanAbsent(null, types);
54-
}
55-
5651
@Override
5752
public boolean isBeanAbsent(String name, Type... types) {
5853
parentMatch = null;

0 commit comments

Comments
 (0)