simplify further
This commit is contained in:
parent
8d04bee8af
commit
36012b9e0f
|
@ -71,8 +71,6 @@ final class Security {
|
|||
m.put(Pattern.compile(".*lucene-core-.*\\.jar$"), "es.security.jar.lucene.core");
|
||||
m.put(Pattern.compile(".*jsr166e-.*\\.jar$"), "es.security.jar.twitter.jsr166e");
|
||||
m.put(Pattern.compile(".*securemock-.*\\.jar$"), "es.security.jar.elasticsearch.securemock");
|
||||
m.put(Pattern.compile(".*mockito-core-.*\\.jar$"), "es.security.jar.mockito.core");
|
||||
m.put(Pattern.compile(".*objenesis-.*\\.jar$"), "es.security.jar.objenesis");
|
||||
SPECIAL_JARS = Collections.unmodifiableMap(m);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,14 +42,8 @@ grant codeBase "${es.security.jar.twitter.jsr166e}" {
|
|||
permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
|
||||
};
|
||||
|
||||
// the following three jars all conspire to support creation of mocks
|
||||
grant codeBase "${es.security.jar.elasticsearch.securemock}" {
|
||||
permission java.lang.RuntimePermission "reflectionFactoryAccess";
|
||||
};
|
||||
grant codeBase "${es.security.jar.mockito.core}" {
|
||||
permission java.lang.RuntimePermission "reflectionFactoryAccess";
|
||||
};
|
||||
grant codeBase "${es.security.jar.objenesis}" {
|
||||
// needed to support creation of mocks
|
||||
permission java.lang.RuntimePermission "reflectionFactoryAccess";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue