more java-ish

This commit is contained in:
Vincent Batts 2012-10-04 16:17:54 -04:00
parent 20648a5dd3
commit e8a1616eb4

View file

@ -37,8 +37,12 @@ public class Util {
this.ctx = new NodeContext();
}
NodeContext getContext() {
return this.ctx;
}
public PathNode makePathTree(List<String> contents, PathNode parent) {
PathNode endMarker = new PathNode(this.ctx);
PathNode endMarker = new PathNode(getContext());
for (String path : contents) {
StringTokenizer st = new StringTokenizer(path, "/");
makePathForURL(st, parent, endMarker);