diff --git a/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/resolver/Resolver.java b/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/resolver/Resolver.java index 8ca0a37ca..d54388721 100644 --- a/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/resolver/Resolver.java +++ b/maven-resolver-demos/maven-resolver-demo-snippets/src/main/java/org/apache/maven/resolver/examples/resolver/Resolver.java @@ -90,10 +90,10 @@ public ResolverResult resolve(String groupId, String artifactId, String version) System.out.println("Tree:"); System.out.println(dump); - NodeListGenerator generator = new NodeListGenerator(); - rootNode.accept(new PreorderDependencyNodeConsumerVisitor(generator)); + NodeListGenerator nlg = new NodeListGenerator(); + rootNode.accept(new PreorderDependencyNodeConsumerVisitor(nlg)); - return new ResolverResult(rootNode, generator.getFiles(), generator.getClassPath()); + return new ResolverResult(rootNode, nlg.getFiles(), nlg.getClassPath()); } public void install(Artifact artifact, Artifact pom) throws InstallationException {