summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@collab.net>2019-02-21 14:23:04 +0900
committerDavid Pursehouse <dpursehouse@collab.net>2019-02-26 17:27:10 +0900
commit56d17e9ead37bf853398e8d371fc15d5829ffba3 (patch)
treeda01f256078689aa44895f2f7970b97d0927a9a9
parent5c25c0400415ef7e59adf4c21b52920e7b81cefe (diff)
UrlFormatter#getSettingsUrl: Annotate section parameter as @Nullable
-rw-r--r--java/com/google/gerrit/server/config/UrlFormatter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/google/gerrit/server/config/UrlFormatter.java b/java/com/google/gerrit/server/config/UrlFormatter.java
index 5cec1ac2c4..9fb9842cb9 100644
--- a/java/com/google/gerrit/server/config/UrlFormatter.java
+++ b/java/com/google/gerrit/server/config/UrlFormatter.java
@@ -49,7 +49,7 @@ public interface UrlFormatter {
}
/** Returns a URL pointing to a section of the settings page. */
- default Optional<String> getSettingsUrl(String section) {
+ default Optional<String> getSettingsUrl(@Nullable String section) {
return getWebUrl()
.map(url -> url + "settings" + (Strings.isNullOrEmpty(section) ? "" : "#" + section));
}