Skip to content

Commit cdc7fb8

Browse files
Vladimir Kotalahornace
authored andcommitted
1 parent 9ae4322 commit cdc7fb8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

plugins/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ Portions Copyright (c) 2020, Chris Fraire <[email protected]>.
9797
<artifactId>mockito-core</artifactId>
9898
<scope>test</scope>
9999
</dependency>
100+
<dependency>
101+
<groupId>org.jetbrains</groupId>
102+
<artifactId>annotations</artifactId>
103+
<scope>compile</scope>
104+
</dependency>
100105
</dependencies>
101106

102107
<build>

plugins/src/main/java/opengrok/auth/plugin/UserWhiteListPlugin.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import jakarta.servlet.http.HttpServletRequest;
2727
import opengrok.auth.plugin.entity.User;
28+
import org.jetbrains.annotations.TestOnly;
2829
import org.opengrok.indexer.authorization.IAuthorizationPlugin;
2930
import org.opengrok.indexer.configuration.Group;
3031
import org.opengrok.indexer.configuration.Project;
@@ -79,7 +80,7 @@ public void load(Map<String, Object> parameters) {
7980
new Object[]{filePath, whitelist.size(), fieldName});
8081
}
8182

82-
// for testing
83+
@TestOnly
8384
Set<String> getWhitelist() {
8485
return whitelist;
8586
}

0 commit comments

Comments
 (0)