Skip to content

Commit 6464e2f

Browse files
committed
use isEmpty()
1 parent 788b234 commit 6464e2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opengrok-web/src/main/webapp/mast.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1818
1919
CDDL HEADER END
2020
21-
Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
21+
Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
2222
Portions Copyright 2011 Jens Elkner.
2323
Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
2424
@@ -45,7 +45,7 @@ org.opengrok.indexer.web.Util"%>
4545
}
4646
4747
String redir = cfg.canProcess();
48-
if (redir == null || redir.length() > 0) {
48+
if (redir == null || !redir.isEmpty()) {
4949
if (redir == null) {
5050
response.sendError(HttpServletResponse.SC_NOT_FOUND);
5151
} else {

0 commit comments

Comments
 (0)