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();});
146
146
if (! projects. contains(projectName)) {
147
147
projects. add(projectName);
148
148
// update cookie
149
- cookieValue = cookieValue. length() == 0 ? projectName :
150
- projectName + ' ,' + cookieValue;
149
+ cookieValue = cookieValue. isEmpty() ? projectName : projectName + ' ,' + cookieValue;
151
150
Cookie cookie = new Cookie (PageConfig . OPEN_GROK_PROJECT , URLEncoder . encode(cookieValue, StandardCharsets . UTF_8 ));
152
151
// TODO hmmm, projects.jspf doesn't set a path
153
152
cookie. setPath(request. getContextPath() + ' /' );
@@ -210,7 +209,7 @@ document.pageReady.push(function() { pageReadyList();});
210
209
}
211
210
212
211
statistics. report(LOGGER , Level . FINE , " directory listing done" , " dir.list.latency" );
213
- } else if (rev. length() != 0 ) {
212
+ } else if (! rev. isEmpty() ) {
214
213
// requesting a revision
215
214
File xrefFile;
216
215
if (cfg. isLatestRevision(rev) && (xrefFile = cfg. findDataFile()) != null ) {
You can’t perform that action at this time.
0 commit comments