From 6141cea81a32dec96e22249253ec058beebad0e8 Mon Sep 17 00:00:00 2001 From: Dmitry Kryukov Date: Sat, 6 Jul 2024 23:02:21 +0300 Subject: [PATCH] Improvement: removed collections, which are updated, but never queried --- .../src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java | 2 -- .../src/main/java/io/quarkus/qute/deployment/QuteProcessor.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java index dfb8a6df77d12..d5ee9481a0d0d 100644 --- a/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java +++ b/devtools/gradle/gradle-application-plugin/src/main/java/io/quarkus/gradle/tasks/QuarkusDev.java @@ -671,13 +671,11 @@ private void addLocalProject(ResolvedDependency project, GradleDevModeLauncher.B final ArtifactSources testSources = project.getWorkspaceModule().getTestSources(); if (testSources != null) { Set testSourcePaths = new LinkedHashSet<>(); - Set testSourceParentPaths = new LinkedHashSet<>(); final Set 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()); } diff --git a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java index 51c396c94d29b..26871e2307a67 100644 --- a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java +++ b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java @@ -487,7 +487,6 @@ && isNotLocatedByCustomTemplateLocator(locatorPatternsBuildItem.getLocationPatte Map bindings = new HashMap<>(); List parameters = canonicalConstructor.parameterTypes(); - List parameterNames = new ArrayList<>(parameters.size()); for (int i = 0; i < parameters.size(); i++) { Type type = parameters.get(i); String name = canonicalConstructor.parameterName(i); @@ -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)