Skip to content

Commit c7dfd26

Browse files
author
Vladimir Kotal
committed
the token set should not be modifiable
1 parent a687cd8 commit c7dfd26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/configuration/RuntimeEnvironment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1937,7 +1937,7 @@ private int getMessageLimit() {
19371937
}
19381938

19391939
public Set<String> getAuthenticationTokens() {
1940-
return syncReadConfiguration(Configuration::getAuthenticationTokens);
1940+
return Collections.unmodifiableSet(syncReadConfiguration(Configuration::getAuthenticationTokens));
19411941
}
19421942

19431943
public void setAuthenticationTokens(Set<String> tokens) {

0 commit comments

Comments
 (0)