Skip to content

Commit

Permalink
Improving behavior of the search API (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuppieRK authored Feb 2, 2025
1 parent 9c6bae5 commit 370afd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ methods outputs should be exposed to other classes.
<dependency>
<groupId>io.github.suppierk</groupId>
<artifactId>inject</artifactId>
<version>2.0.0</version>
<version>2.0.1</version>
</dependency>
```

- **Gradle** (_works for both Groovy and Kotlin_)

```groovy
implementation("io.github.suppierk:inject:2.0.0")
implementation("io.github.suppierk:inject:2.0.1")
```

[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-orange.svg)](https://sonarcloud.io/summary/overall?id=SuppieRK_inject)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SONATYPE_AUTOMATIC_RELEASE=true

GROUP=io.github.suppierk
POM_ARTIFACT_ID=inject
VERSION_NAME=2.0.0
VERSION_NAME=2.0.1

POM_NAME=Simple Dependency Injector
POM_DESCRIPTION=Java 11 compatible implementation of the JSR 330 dependency injection
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/github/suppierk/inject/Injector.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public <T> List<Key<T>> findAll(Class<T> clazz, KeyAnnotationsPredicate keyAnnot
final var keys = new ArrayList<Key<T>>();

for (Key<?> key : providers.keySet()) {
if (key.type().isAssignableFrom(clazz) && keyAnnotationsPredicate.test(key)) {
if (clazz.isAssignableFrom(key.type()) && keyAnnotationsPredicate.test(key)) {
keys.add((Key<T>) key);
}
}
Expand Down

0 comments on commit 370afd6

Please sign in to comment.