@@ -18,7 +18,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
18
18
19
19
CDDL HEADER END
20
20
21
- Copyright (c) 2005, 2021 , Oracle and/or its affiliates. All rights reserved.
21
+ Copyright (c) 2005, 2025 , Oracle and/or its affiliates. All rights reserved.
22
22
Portions Copyright 2011 Jens Elkner.
23
23
24
24
--%> <%@page import="
@@ -41,7 +41,7 @@ org.opengrok.web.PageConfig"
41
41
cfg. checkSourceRootExistence();
42
42
43
43
String redir = cfg. canProcess();
44
- if (redir == null || redir. length() > 0 ) {
44
+ if (redir == null || ! redir. isEmpty() ) {
45
45
if (redir != null ) {
46
46
response. sendRedirect(redir);
47
47
} else {
@@ -57,15 +57,14 @@ org.opengrok.web.PageConfig"
57
57
% > /rss.xsl.xml" ?>
58
58
<rss version =" 2.0" xmlns:dc =" http://purl.org/dc/elements/1.1/" >
59
59
<channel >
60
- <title >Changes in <%= path. length() == 0
60
+ <title >Changes in <%= path. isEmpty()
61
61
? " Cross Reference"
62
62
: Util . htmlize(cfg. getResourceFile(). getName()) % > </title >
63
63
<description ><%= Util . htmlize(dtag) % > </description >
64
64
<language >en</language >
65
- <copyright >Copyright 2015 </copyright >
65
+ <copyright >Copyright 2025 </copyright >
66
66
<generator >Java</generator ><%
67
- History hist = null ;
68
- String newline = System . getProperty(" line.separator" );
67
+ History hist;
69
68
if (cfg. isDir()) {
70
69
hist = new DirectoryHistoryReader (cfg. getHistoryDirs()). getHistory();
71
70
} else {
@@ -123,8 +122,7 @@ org.opengrok.web.PageConfig"
123
122
% >
124
123
</description >
125
124
<pubDate ><%
126
- SimpleDateFormat df =
127
- new SimpleDateFormat (" EEE, dd MMM yyyy HH:mm:ss Z" );
125
+ SimpleDateFormat df = new SimpleDateFormat (" EEE, dd MMM yyyy HH:mm:ss Z" );
128
126
% ><%= Util . htmlize(df. format(entry. getDate())) % > </pubDate >
129
127
<dc:creator ><%= Util . htmlize(entry. getAuthor()) % > </dc:creator >
130
128
</item >
0 commit comments