Skip to content

Commit

Permalink
feat: create and fix filter
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <[email protected]>
  • Loading branch information
otaviojava committed Nov 4, 2024
1 parent 3ab1bd7 commit f4be1c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/java-17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
restore-keys: |
${{ runner.os }}-maven
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B install --file pom.xml
2 changes: 1 addition & 1 deletion .github/workflows/java-21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
restore-keys: |
${{ runner.os }}-maven
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn -B install --file pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public boolean test(Class<?> type) {
*/
public boolean isSupported(Class<?> type) {
Optional<String> provider = getProvider(type);
return provider.map(p -> p.equals(Repository.ANY_PROVIDER) || p.equalsIgnoreCase(PROVIDER))
return provider.map(p -> Repository.ANY_PROVIDER.equals(p) || PROVIDER.equalsIgnoreCase(p))
.isPresent();
}

Expand Down Expand Up @@ -93,6 +93,4 @@ private Optional<Class<?>> getEntity(Class<?> repository) {
return Optional.empty();
}



}

0 comments on commit f4be1c7

Please sign in to comment.