diff options
Diffstat (limited to 'zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java')
-rw-r--r-- | zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java b/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java index 2ccdfc877..ae0f3b8a2 100644 --- a/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java +++ b/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java @@ -40,7 +40,7 @@ import org.slf4j.LoggerFactory; public class ZKUtil { private static final Logger LOG = LoggerFactory.getLogger(ZKUtil.class); - private static final Map<Integer, String> permCache = new ConcurrentHashMap<Integer, String>(); + private static final Map<Integer, String> permCache = new ConcurrentHashMap<>(); /** * Recursively delete the node with the given path. * <p> @@ -202,7 +202,7 @@ public class ZKUtil { ZooKeeper zk, final String pathRoot) throws KeeperException, InterruptedException { Queue<String> queue = new ArrayDeque<>(); - List<String> tree = new ArrayList<String>(); + List<String> tree = new ArrayList<>(); queue.add(pathRoot); tree.add(pathRoot); while (!queue.isEmpty()) { @@ -307,4 +307,4 @@ public class ZKUtil { } return sb.toString(); } -}
\ No newline at end of file +} |