File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
opengrok-web/src/main/webapp Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,7 @@ document.pageReady.push(function() { pageReadyList();});
146146 if (! projects. contains(projectName)) {
147147 projects. add(projectName);
148148 // update cookie
149- cookieValue = cookieValue. length() == 0 ? projectName :
150- projectName + ' ,' + cookieValue;
149+ cookieValue = cookieValue. isEmpty() ? projectName : projectName + ' ,' + cookieValue;
151150 Cookie cookie = new Cookie (PageConfig . OPEN_GROK_PROJECT , URLEncoder . encode(cookieValue, StandardCharsets . UTF_8 ));
152151 // TODO hmmm, projects.jspf doesn't set a path
153152 cookie. setPath(request. getContextPath() + ' /' );
@@ -210,7 +209,7 @@ document.pageReady.push(function() { pageReadyList();});
210209 }
211210
212211 statistics. report(LOGGER , Level . FINE , " directory listing done" , " dir.list.latency" );
213- } else if (rev. length() != 0 ) {
212+ } else if (! rev. isEmpty() ) {
214213 // requesting a revision
215214 File xrefFile;
216215 if (cfg. isLatestRevision(rev) && (xrefFile = cfg. findDataFile()) != null ) {
You can’t perform that action at this time.
0 commit comments