Skip to content

Commit

Permalink
fix: explicit type argument Configuration replaced with <> in GradleU…
Browse files Browse the repository at this point in the history
…til (3503)

Fixed issue for class GradleUtil : Explicit type argument Configuration can be replaced with <>.
---
Fixed issue for class GradleUtil : Explicit type argument Configuration replaced with <>
---
Merge branch 'master' of https://github.com/Theo64-dev/jkube-myversion
  • Loading branch information
Theo64-dev authored Nov 4, 2024
1 parent abd79de commit 26b56ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static List<Dependency> extractDependenciesWithTransitive(Project gradle

private static List<Dependency> extractDependencies(Project gradleProject,
Function<ResolutionResult, Set<? extends DependencyResult>> resolutionToDependency) {
return new ArrayList<Configuration>(gradleProject.getConfigurations()).stream()
return new ArrayList<>(gradleProject.getConfigurations()).stream()
.filter(GradleUtil::canBeResolved)
.flatMap(c -> {
final Map<ComponentIdentifier, ResolvedArtifactResult> artifacts = artifactMap(c);
Expand Down

0 comments on commit 26b56ed

Please sign in to comment.