more java-ish
This commit is contained in:
parent
20648a5dd3
commit
e8a1616eb4
1 changed files with 5 additions and 1 deletions
|
@ -37,8 +37,12 @@ public class Util {
|
||||||
this.ctx = new NodeContext();
|
this.ctx = new NodeContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NodeContext getContext() {
|
||||||
|
return this.ctx;
|
||||||
|
}
|
||||||
|
|
||||||
public PathNode makePathTree(List<String> contents, PathNode parent) {
|
public PathNode makePathTree(List<String> contents, PathNode parent) {
|
||||||
PathNode endMarker = new PathNode(this.ctx);
|
PathNode endMarker = new PathNode(getContext());
|
||||||
for (String path : contents) {
|
for (String path : contents) {
|
||||||
StringTokenizer st = new StringTokenizer(path, "/");
|
StringTokenizer st = new StringTokenizer(path, "/");
|
||||||
makePathForURL(st, parent, endMarker);
|
makePathForURL(st, parent, endMarker);
|
||||||
|
|
Loading…
Reference in a new issue