Skip to content

Commit

Permalink
Improvement: removed collections, which are updated, but never queried
Browse files Browse the repository at this point in the history
  • Loading branch information
dk2k committed Jul 6, 2024
1 parent d7c8f08 commit 8a883ad
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 @@ -486,7 +486,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 @@ -499,7 +498,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 8a883ad

Please sign in to comment.