Skip to content

Commit c61b9a9

Browse files
committed
Trivial code cleanup.
1 parent e048805 commit c61b9a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/edu/stanford/nlp/trees/TreePrint.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
public class TreePrint {
2727

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

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

@@ -693,12 +693,12 @@ private List<Dependency<Label, Label, Object>> getSortedDeps(Tree tree, Predicat
693693
for (TypedDependency dep : deps) {
694694
sortedDeps.add(new NamedDependency(dep.gov(), dep.dep(), dep.reln().toString()));
695695
}
696-
Collections.sort(sortedDeps, Dependencies.dependencyIndexComparator());
696+
sortedDeps.sort(Dependencies.dependencyIndexComparator());
697697
return sortedDeps;
698698
} else {
699699
Set<Dependency<Label, Label, Object>> depsSet = tree.mapDependencies(filter, hf, "root");
700700
List<Dependency<Label, Label, Object>> sortedDeps = new ArrayList<>(depsSet);
701-
Collections.sort(sortedDeps, Dependencies.dependencyIndexComparator());
701+
sortedDeps.sort(Dependencies.dependencyIndexComparator());
702702
return sortedDeps;
703703
}
704704
}

0 commit comments

Comments
 (0)