- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for checkPermissions (0.18 sec)
-
guava-tests/test/com/google/common/util/concurrent/CallablesTest.java
new SecurityManager() { @Override public void checkAccess(Thread t) { throw new SecurityException(); } @Override public void checkPermission(Permission perm) { // Do nothing so we can clear the security manager at the end } }); try { final String oldName = Thread.currentThread().getName();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 13 14:28:25 UTC 2024 - 5.4K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/AbstractTestEnvironmentIntegrationTest.groovy
assert getClass().getName().equals(System.getProperty("java.security.manager")); } @Override public void checkPermission(Permission permission) { } } """.stripIndent() buildFile << """ java { toolchain {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 11.5K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/junit/AbstractJUnitTestExecutionIntegrationTest.groovy
public void testSecurityManagerCleanExit() { System.setSecurityManager(new SecurityManager() { @Override public void checkPermission(Permission perm) { if ("setSecurityManager".equals(perm.getName())) { throw new SecurityException("You cannot replace this security manager!");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Apr 06 02:21:33 UTC 2024 - 19.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
} } assertThat(file).isNotNull(); SecurityManager disallowFilesSecurityManager = new SecurityManager() { @Override public void checkPermission(Permission p) { if (readClassPathFiles.implies(p)) { throw new SecurityException("Disallowed: " + p); } } };
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Apr 26 14:02:27 UTC 2024 - 24.9K bytes - Viewed (0)