Skip to content

Commit 9d682ee

Browse files
committed
remove more deprecated methods
1 parent 065a071 commit 9d682ee

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

inject-test/src/test/java/org/example/custom/CustomScopeTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void customScopeAll() {
8080

8181
// includes the 2 supplied beans
8282
final List<BeanEntry> all = beanScope.all();
83-
assertThat(all).hasSize(6);
83+
assertThat(all).hasSize(7);
8484

8585
final CustomBean customBean = beanScope.get(CustomBean.class);
8686

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

-16
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,6 @@ default boolean isBeanAbsent(Type... types) {
5656
return isBeanAbsent(null, types);
5757
}
5858

59-
/**
60-
* @deprecated use {@link #isBeanAbsent(String, Type...)}
61-
*/
62-
@Deprecated(forRemoval = true)
63-
default boolean isAddBeanFor(String name, Type... types) {
64-
return isBeanAbsent(name, types);
65-
}
66-
67-
/**
68-
* @deprecated use {@link #isBeanAbsent(Type...)} instead
69-
*/
70-
@Deprecated(forRemoval = true)
71-
default boolean isAddBeanFor(Type... types) {
72-
return isBeanAbsent(types);
73-
}
74-
7559
/**
7660
* Register the next bean as having Primary priority.
7761
* Highest priority, will be used over any other matching beans.

0 commit comments

Comments
 (0)