Skip to content

Commit

Permalink
Trivial code cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
manning committed Jan 3, 2024
1 parent e048805 commit c61b9a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/edu/stanford/nlp/trees/TreePrint.java
Expand Up @@ -26,7 +26,7 @@
public class TreePrint {

/** A logger for this class */
private static Redwood.RedwoodChannels log = Redwood.channels(TreePrint.class);
private static final Redwood.RedwoodChannels log = Redwood.channels(TreePrint.class);

// TODO: Add support for makeCopulaHead as an outputFormatOption here.

Expand Down Expand Up @@ -693,12 +693,12 @@ private List<Dependency<Label, Label, Object>> getSortedDeps(Tree tree, Predicat
for (TypedDependency dep : deps) {
sortedDeps.add(new NamedDependency(dep.gov(), dep.dep(), dep.reln().toString()));
}
Collections.sort(sortedDeps, Dependencies.dependencyIndexComparator());
sortedDeps.sort(Dependencies.dependencyIndexComparator());
return sortedDeps;
} else {
Set<Dependency<Label, Label, Object>> depsSet = tree.mapDependencies(filter, hf, "root");
List<Dependency<Label, Label, Object>> sortedDeps = new ArrayList<>(depsSet);
Collections.sort(sortedDeps, Dependencies.dependencyIndexComparator());
sortedDeps.sort(Dependencies.dependencyIndexComparator());
return sortedDeps;
}
}
Expand Down

0 comments on commit c61b9a9

Please sign in to comment.