style cleanups (assume and suppressforbidden)

This commit is contained in:
Robert Muir 2015-05-05 10:59:39 -04:00
parent a7774f2d8b
commit 9c0d379254
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ public class ESPolicy extends Policy {
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) {
// run groovy scripts with no permissions
if ("/groovy/script".equals(domain.getCodeSource().getLocation().getFile())) {

View File

@ -41,7 +41,7 @@ public class GroovySecurityTests extends ElasticsearchIntegrationTest {
@Override
public void setUp() throws Exception {
super.setUp();
assumeTrue("security manager is enabled", System.getSecurityManager() != null);
assumeTrue("test requires security manager to be enabled", System.getSecurityManager() != null);
}
@Test