private boolean checkMaxDepth(final int maxDepth, final boolean abortWhenMaxDepthExceeded, boolean warned, final IdentityHashMap<Object, Object> visited) { if (visited.size() >= maxDepth) { if (abortWhenMaxDepthExceeded) { throw new MaxDepthExceededException(MessageFormat.format(ABORT_MESSAGE, maxDepth)); } else if (!warned) { LOG.warn(MessageFormat.format(CONTINUE_MESSAGE, maxDepth)); warned = true; } } return warned; }
private boolean checkMaxDepth(final int maxDepth, final boolean abortWhenMaxDepthExceeded, boolean warned, final IdentityHashMap<Object, Object> visited) { if (visited.size() >= maxDepth) { if (abortWhenMaxDepthExceeded) { throw new MaxDepthExceededException(MessageFormat.format(ABORT_MESSAGE, maxDepth)); } else if (!warned) { LOG.warn(MessageFormat.format(CONTINUE_MESSAGE, maxDepth)); warned = true; } } return warned; }
private boolean checkMaxDepth(final int maxDepth, final boolean abortWhenMaxDepthExceeded, boolean warned, final IdentityHashMap<Object, Object> visited) { if (visited.size() >= maxDepth) { if (abortWhenMaxDepthExceeded) { throw new MaxDepthExceededException(MessageFormat.format(ABORT_MESSAGE, maxDepth)); } else if (!warned) { LOG.warn(MessageFormat.format(CONTINUE_MESSAGE, maxDepth)); warned = true; } } return warned; }
private boolean checkMaxDepth(final int maxDepth, final boolean abortWhenMaxDepthExceeded, boolean warned, final IdentityHashMap<Object, Object> visited) { if (visited.size() >= maxDepth) { if (abortWhenMaxDepthExceeded) { throw new MaxDepthExceededException(MessageFormat.format(ABORT_MESSAGE, maxDepth)); } else if (!warned) { LOG.warn(MessageFormat.format(CONTINUE_MESSAGE, maxDepth)); warned = true; } } return warned; }