@@ -18,7 +18,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1818
1919CDDL HEADER END
2020
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.
2222Portions Copyright 2011 Jens Elkner.
2323
2424--%> <%@page import="
@@ -41,7 +41,7 @@ org.opengrok.web.PageConfig"
4141 cfg. checkSourceRootExistence();
4242
4343 String redir = cfg. canProcess();
44- if (redir == null || redir. length() > 0 ) {
44+ if (redir == null || ! redir. isEmpty() ) {
4545 if (redir != null ) {
4646 response. sendRedirect(redir);
4747 } else {
@@ -57,15 +57,14 @@ org.opengrok.web.PageConfig"
5757 % > /rss.xsl.xml" ?>
5858<rss version =" 2.0" xmlns:dc =" http://purl.org/dc/elements/1.1/" >
5959<channel >
60- <title >Changes in <%= path. length() == 0
60+ <title >Changes in <%= path. isEmpty()
6161 ? " Cross Reference"
6262 : Util . htmlize(cfg. getResourceFile(). getName()) % > </title >
6363 <description ><%= Util . htmlize(dtag) % > </description >
6464 <language >en</language >
65- <copyright >Copyright 2015 </copyright >
65+ <copyright >Copyright 2025 </copyright >
6666 <generator >Java</generator ><%
67- History hist = null ;
68- String newline = System . getProperty(" line.separator" );
67+ History hist;
6968 if (cfg. isDir()) {
7069 hist = new DirectoryHistoryReader (cfg. getHistoryDirs()). getHistory();
7170 } else {
@@ -123,8 +122,7 @@ org.opengrok.web.PageConfig"
123122 % >
124123 </description >
125124 <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" );
128126 % ><%= Util . htmlize(df. format(entry. getDate())) % > </pubDate >
129127 <dc:creator ><%= Util . htmlize(entry. getAuthor()) % > </dc:creator >
130128 </item >
0 commit comments