style cleanups (assume and suppressforbidden)
This commit is contained in:
parent
a7774f2d8b
commit
9c0d379254
|
@ -43,7 +43,7 @@ public class ESPolicy extends Policy {
|
||||||
this.dynamic = dynamic;
|
this.dynamic = dynamic;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override @SuppressForbidden(reason = "I know what i am doing")
|
@Override @SuppressForbidden(reason = "fast equals check is desired")
|
||||||
public boolean implies(ProtectionDomain domain, Permission permission) {
|
public boolean implies(ProtectionDomain domain, Permission permission) {
|
||||||
// run groovy scripts with no permissions
|
// run groovy scripts with no permissions
|
||||||
if ("/groovy/script".equals(domain.getCodeSource().getLocation().getFile())) {
|
if ("/groovy/script".equals(domain.getCodeSource().getLocation().getFile())) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class GroovySecurityTests extends ElasticsearchIntegrationTest {
|
||||||
@Override
|
@Override
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
assumeTrue("security manager is enabled", System.getSecurityManager() != null);
|
assumeTrue("test requires security manager to be enabled", System.getSecurityManager() != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue