Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename DependecyGraph to DependencyGraph in extensions/arc/deployment #26642

Merged
merged 1 commit into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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