mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noël Rouvignac
20.42.2016 61b9eb1be03fc03a9f4bb0013a08ff44a1059503
opendj-server-legacy/src/main/java/org/opends/server/loggers/DebugStackTraceFormatter.java
@@ -12,7 +12,7 @@
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2006-2008 Sun Microsystems, Inc.
 * Portions Copyright 2014-2015 ForgeRock AS.
 * Portions Copyright 2014-2016 ForgeRock AS.
 */
package org.opends.server.loggers;
@@ -24,18 +24,12 @@
 */
class DebugStackTraceFormatter
{
  /**
   * The stack depth value to indicate the entire stack should be printed.
   */
  /** The stack depth value to indicate the entire stack should be printed. */
  public static final int COMPLETE_STACK = Integer.MAX_VALUE;
  /**
   * A nested frame filter that removes debug and trailing no OpenDS frames.
   */
  /** A nested frame filter that removes debug and trailing no OpenDS frames. */
  public static final FrameFilter SMART_FRAME_FILTER = new SmartFrameFilter();
  /**
   * A FrameFilter provides stack frame filtering used during formatting.
   */
  /** A FrameFilter provides stack frame filtering used during formatting. */
  interface FrameFilter
  {
@@ -50,10 +44,7 @@
    StackTraceElement[] getFilteredStackTrace(StackTraceElement[] frames);
  }
  /**
   * A basic FrameFilter that filters out frames from the debug logging and non
   * OpenDS classes.
   */
  /** A basic FrameFilter that filters out frames from the debug logging and non OpenDS classes. */
  private static class SmartFrameFilter implements FrameFilter
  {
@@ -78,6 +69,7 @@
     *          the frames to filter
     * @return the filtered stack trace.
     */
    @Override
    public StackTraceElement[] getFilteredStackTrace(StackTraceElement[] frames)
    {
      StackTraceElement[] trimmedStack = null;