Skip to content

Commit

Permalink
Merge pull request quarkusio#26642 from marcwrobel/rename-dependecy-g…
Browse files Browse the repository at this point in the history
…raph

Rename DependecyGraph to DependencyGraph in extensions/arc/deployment
  • Loading branch information
gastaldi authored Jul 11, 2022
2 parents 7cc89fa + d83d303 commit 0025aff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<DevBeanInfo> nodes = new HashSet<>();
Collection<BeanInfo> beans = validationContext.get(BuildExtension.Key.BEANS);
Expand All @@ -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<DevBeanInfo> nodes, Set<Link> links, BeanInfo bean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import java.util.Objects;
import java.util.Set;

public class DependecyGraph {
public class DependencyGraph {

public final Set<DevBeanInfo> nodes;
public final Set<Link> links;

public DependecyGraph(Set<DevBeanInfo> nodes, Set<Link> links) {
public DependencyGraph(Set<DevBeanInfo> nodes, Set<Link> links) {
this.nodes = nodes;
this.links = links;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class DevBeanInfos {
private final List<DevInterceptorInfo> removedInterceptors;
private final List<DevDecoratorInfo> decorators;
private final List<DevDecoratorInfo> removedDecorators;
private final Map<String, DependecyGraph> dependencyGraphs;
private final Map<String, DependencyGraph> dependencyGraphs;

public DevBeanInfos() {
beans = new ArrayList<>();
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 0025aff

Please sign in to comment.