in java/com/google/gitiles/GitilesView.java [249:273]
public Builder setPathPart(String path) {
switch (type) {
case PATH:
case DIFF:
case SHOW:
checkState(path != null, "cannot set null path on %s view", type);
break;
case BLAME:
case ARCHIVE:
case DESCRIBE:
case REFS:
case LOG:
case DOC:
case ROOTED_DOC:
break;
case HOST_INDEX:
case REPOSITORY_INDEX:
case REVISION:
default:
checkState(path == null, "cannot set path on %s view", type);
break;
}
this.path = path != null ? maybeTrimLeadingAndTrailingSlash(path) : null;
return this;
}