From 8a883ad49e6aad82dd2509b4a2bbe6f6ec59b725 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 f8c1c3226b617..997a5aaa8801f 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 f40f1eeb724aa..7a3e9299e2e5e 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 @@ -486,7 +486,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); @@ -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)