Skip to content

Commit

Permalink
Merge pull request #41735 from dk2k/dk2k_removed_unneeded_collections
Browse files Browse the repository at this point in the history
Improvement: removed collections, which are updated, but never queried
  • Loading branch information
gsmet authored Aug 12, 2024
2 parents b859d7f + 6141cea commit 78cece4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -671,13 +671,11 @@ private void addLocalProject(ResolvedDependency project, GradleDevModeLauncher.B
final ArtifactSources testSources = project.getWorkspaceModule().getTestSources();
if (testSources != null) {
Set<Path> testSourcePaths = new LinkedHashSet<>();
Set<Path> testSourceParentPaths = new LinkedHashSet<>();

final Set<Path> testClassesDirs = new HashSet<>(testSources.getSourceDirs().size());
for (SourceDir src : testSources.getSourceDirs()) {
if (Files.exists(src.getDir())) {
testSourcePaths.add(src.getDir());
testSourceParentPaths.add(src.getDir().getParent());
if (src.getOutputDir() != null) {
testClassesDirs.add(src.getOutputDir());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,6 @@ && isNotLocatedByCustomTemplateLocator(locatorPatternsBuildItem.getLocationPatte

Map<String, String> bindings = new HashMap<>();
List<Type> parameters = canonicalConstructor.parameterTypes();
List<String> parameterNames = new ArrayList<>(parameters.size());
for (int i = 0; i < parameters.size(); i++) {
Type type = parameters.get(i);
String name = canonicalConstructor.parameterName(i);
Expand All @@ -500,7 +499,6 @@ && isNotLocatedByCustomTemplateLocator(locatorPatternsBuildItem.getLocationPatte
+ "] conflicts with an interface method of " + recordInterface);
}
bindings.put(name, getCheckedTemplateParameterTypeName(type));
parameterNames.add(name);
}
AnnotationValue requireTypeSafeExpressions = checkedTemplateAnnotation != null
? checkedTemplateAnnotation.value(CHECKED_TEMPLATE_REQUIRE_TYPE_SAFE)
Expand Down

0 comments on commit 78cece4

Please sign in to comment.