Permalink
Browse files

VFS class cleanup

  • Loading branch information...
1 parent c48a56e commit 76448d5ff7480d181cf1e59ca34e2b9f67d17100 @dmlloyd dmlloyd committed Jun 9, 2011
Showing with 12 additions and 4 deletions.
  1. +12 −4 src/main/java/org/jboss/vfs/VFS.java
@@ -31,7 +31,15 @@
import java.net.URL;
import java.security.AccessController;
import java.security.PrivilegedAction;
-import java.util.*;
+import java.util.AbstractSet;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import java.util.concurrent.atomic.AtomicBoolean;
@@ -79,12 +87,12 @@ private static VirtualFile createDefaultRoot() {
public Boolean run() {
return Boolean.valueOf(System.getProperty("jboss.vfs.leakDebugging", "true"));
}
- });
+ }).booleanValue();
FORCE_CANONICAL = AccessController.doPrivileged(new PrivilegedAction<Boolean>() {
public Boolean run() {
- return Boolean.getBoolean("jboss.vfs.forceCanonical");
+ return Boolean.valueOf(System.getProperty("jboss.vfs.forceCanonical", "false"));
}
- });
+ }).booleanValue();
if (FORCE_CANONICAL)
log.info("Canonical path lookup enabled.");

0 comments on commit 76448d5

Please sign in to comment.