aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/direct_bt/PlatformToolkit.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/org/direct_bt/PlatformToolkit.java')
-rw-r--r--java/org/direct_bt/PlatformToolkit.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/java/org/direct_bt/PlatformToolkit.java b/java/org/direct_bt/PlatformToolkit.java
index 480200e3..27a3021b 100644
--- a/java/org/direct_bt/PlatformToolkit.java
+++ b/java/org/direct_bt/PlatformToolkit.java
@@ -29,7 +29,6 @@ import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.IntBuffer;
import java.nio.ShortBuffer;
-import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.ArrayList;
import java.util.Iterator;
@@ -253,7 +252,7 @@ final class PlatformToolkit {
static {
{
final String[] props =
- AccessController.doPrivileged(new PrivilegedAction<String[]>() {
+ BTFactory.doPrivileged(new PrivilegedAction<String[]>() {
@Override
public String[] run() {
final String[] props = new String[5];
@@ -450,7 +449,7 @@ final class PlatformToolkit {
return prefix + libBaseName + suffix;
}
private static final String getCanonicalPath(final String path) {
- return AccessController.doPrivileged(new PrivilegedAction<String>() {
+ return BTFactory.doPrivileged(new PrivilegedAction<String>() {
@Override
public String run() {
try {