Java Code Examples for roboguice.util.Ln#isDebugEnabled()

The following examples show how to use roboguice.util.Ln#isDebugEnabled() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Tree.java    From oversec with GNU General Public License v3.0 5 votes vote down vote up
private TreeNode obtain(AccessibilityNodeInfo node) {
    TreeNode res = mPool.acquire();
    if (res == null) {
        res = new TreeNode();
    }
    res.sealed = false;
    if (Ln.isDebugEnabled()) {
        dumpTreeNodePool("obtain B " + super.toString());
    }

    res.init(node);
    return res;
}
 
Example 2
Source File: Tree.java    From oversec with GNU General Public License v3.0 5 votes vote down vote up
private TreeNode obtain(TreeNode from, boolean copyChildren) {
    TreeNode res = mPool.acquire();
    if (res == null) {
        res = new TreeNode();
    }
    res.sealed = false;
    if (Ln.isDebugEnabled()) {
        dumpTreeNodePool("obtain A " + super.toString());
    }
    res.copy(from, copyChildren);

    return res;
}