File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
main/java/org/opengrok/indexer/configuration
test/java/org/opengrok/indexer/configuration Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 35
35
import java .util .ArrayList ;
36
36
import java .util .Collections ;
37
37
import java .util .HashMap ;
38
+ import java .util .HashSet ;
38
39
import java .util .Set ;
39
40
import java .util .TreeSet ;
40
41
import java .util .stream .Collectors ;
@@ -53,15 +54,18 @@ public class ConfigurationClassLoader extends ClassLoader {
53
54
AuthorizationStack .class ,
54
55
Collections .class ,
55
56
Configuration .class ,
57
+ Enum .class ,
56
58
Filter .class ,
57
59
Group .class ,
58
60
HashMap .class ,
61
+ HashSet .class ,
59
62
IAuthorizationPlugin .class ,
60
63
IgnoredNames .class ,
61
64
LuceneLockName .class ,
62
65
Project .class ,
63
66
RemoteSCM .class ,
64
67
RepositoryInfo .class ,
68
+ Set .class ,
65
69
StatsdConfig .class ,
66
70
StatsdFlavor .class ,
67
71
String .class ,
Original file line number Diff line number Diff line change @@ -225,9 +225,9 @@ void testDeserializationOfNotWhiteListedClassThrowsError(final String exploit) {
225
225
226
226
@ Test
227
227
void testLoadingValidConfiguration () throws IOException {
228
- try (var bf = new BufferedReader (new InputStreamReader (ConfigurationTest .class .getClassLoader ()
228
+ try (var br = new BufferedReader (new InputStreamReader (ConfigurationTest .class .getClassLoader ()
229
229
.getResourceAsStream ("configuration/valid_configuration.xml" )))) {
230
- String xml = bf .lines ().collect (Collectors .joining (System .lineSeparator ()));
230
+ String xml = br .lines ().collect (Collectors .joining (System .lineSeparator ()));
231
231
var config = Configuration .makeXMLStringAsConfiguration (xml );
232
232
assertEquals ("/opt/opengrok_data" , config .getDataRoot ());
233
233
}
You can’t perform that action at this time.
0 commit comments