Skip to content

Commit 30ab634

Browse files
committed
simplify description
1 parent 5565ec6 commit 30ab634

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

opengrok-web/src/main/java/org/opengrok/web/PageConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
import jakarta.servlet.http.HttpServletRequest;
6767
import jakarta.servlet.http.HttpServletResponse;
6868
import jakarta.ws.rs.core.HttpHeaders;
69+
import org.jetbrains.annotations.NotNull;
6970
import org.jetbrains.annotations.Nullable;
7071
import org.jetbrains.annotations.VisibleForTesting;
7172
import org.opengrok.indexer.Info;
@@ -691,6 +692,7 @@ public EftarFileReader getEftarReader() {
691692
*
692693
* @return an empty string if not found, the tag otherwise.
693694
*/
695+
@NotNull
694696
public String getDefineTagsIndex() {
695697
if (dtag != null) {
696698
return dtag;

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ org.opengrok.web.PageConfig"
5050
return;
5151
}
5252
String path = cfg.getPath();
53-
String dtag = cfg.getDefineTagsIndex();
5453
response.setContentType("text/xml");
5554
%><?xml version="1.0"?>
5655
<?xml-stylesheet type="text/xsl" href="<%= request.getContextPath()
@@ -60,7 +59,7 @@ org.opengrok.web.PageConfig"
6059
<title>Changes in <%= path.isEmpty()
6160
? "Cross Reference"
6261
: Util.htmlize(cfg.getResourceFile().getName()) %></title>
63-
<description><%= Util.htmlize(dtag) %></description>
62+
<description><%= Util.htmlize(cfg.getDefineTagsIndex()) %></description>
6463
<language>en</language>
6564
<copyright>Copyright 2025</copyright>
6665
<generator>Java</generator><%

0 commit comments

Comments
 (0)