From d83d30396bd34287a3df6aaaba23954fc5e1b6dd Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 10 Jul 2022 23:56:16 +0200 Subject: [PATCH] Rename DependecyGraph to DependencyGraph in extensions/arc/deployment --- .../arc/deployment/devconsole/ArcDevConsoleProcessor.java | 6 +++--- .../{DependecyGraph.java => DependencyGraph.java} | 4 ++-- .../io/quarkus/arc/deployment/devconsole/DevBeanInfos.java | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) rename extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/{DependecyGraph.java => DependencyGraph.java} (94%) diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/ArcDevConsoleProcessor.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/ArcDevConsoleProcessor.java index 7edce828544ab..5e4f85f8a1d0c 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/ArcDevConsoleProcessor.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/ArcDevConsoleProcessor.java @@ -18,7 +18,7 @@ import io.quarkus.arc.deployment.CompletedApplicationClassPredicateBuildItem; import io.quarkus.arc.deployment.CustomScopeAnnotationsBuildItem; import io.quarkus.arc.deployment.ValidationPhaseBuildItem; -import io.quarkus.arc.deployment.devconsole.DependecyGraph.Link; +import io.quarkus.arc.deployment.devconsole.DependencyGraph.Link; import io.quarkus.arc.processor.AnnotationsTransformer; import io.quarkus.arc.processor.BeanDeploymentValidator; import io.quarkus.arc.processor.BeanDeploymentValidator.ValidationContext; @@ -153,7 +153,7 @@ private boolean isAdditionalBeanDefiningAnnotationOn(ClassInfo beanClass, return false; } - DependecyGraph buildDependencyGraph(BeanInfo bean, ValidationContext validationContext, BeanResolver resolver, + DependencyGraph buildDependencyGraph(BeanInfo bean, ValidationContext validationContext, BeanResolver resolver, DevBeanInfos devBeanInfos) { Set nodes = new HashSet<>(); Collection beans = validationContext.get(BuildExtension.Key.BEANS); @@ -162,7 +162,7 @@ DependecyGraph buildDependencyGraph(BeanInfo bean, ValidationContext validationC .collect(Collectors.groupingBy(BeanInfo::getDeclaringBean)); addNodesDependencies(bean, nodes, links, bean, devBeanInfos); addNodesDependents(bean, nodes, links, bean, beans, declaringToProducers, resolver, devBeanInfos); - return new DependecyGraph(nodes, links); + return new DependencyGraph(nodes, links); } void addNodesDependencies(BeanInfo root, Set nodes, Set links, BeanInfo bean, diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DependecyGraph.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DependencyGraph.java similarity index 94% rename from extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DependecyGraph.java rename to extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DependencyGraph.java index 4db95124708c6..ab422207e5cb0 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DependecyGraph.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DependencyGraph.java @@ -3,12 +3,12 @@ import java.util.Objects; import java.util.Set; -public class DependecyGraph { +public class DependencyGraph { public final Set nodes; public final Set links; - public DependecyGraph(Set nodes, Set links) { + public DependencyGraph(Set nodes, Set links) { this.nodes = nodes; this.links = links; } diff --git a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevBeanInfos.java b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevBeanInfos.java index 8c2238f7e8f9c..9fd613cc94224 100644 --- a/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevBeanInfos.java +++ b/extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/devconsole/DevBeanInfos.java @@ -15,7 +15,7 @@ public class DevBeanInfos { private final List removedInterceptors; private final List decorators; private final List removedDecorators; - private final Map dependencyGraphs; + private final Map dependencyGraphs; public DevBeanInfos() { beans = new ArrayList<>(); @@ -74,7 +74,7 @@ public DevInterceptorInfo getInterceptor(String id) { return null; } - public DependecyGraph getDependencyGraph(String beanId) { + public DependencyGraph getDependencyGraph(String beanId) { return dependencyGraphs.get(beanId); } @@ -110,7 +110,7 @@ void addRemovedDecorator(DevDecoratorInfo decorator) { removedDecorators.add(decorator); } - void addDependencyGraph(String beanId, DependecyGraph graph) { + void addDependencyGraph(String beanId, DependencyGraph graph) { dependencyGraphs.put(beanId, graph); }