public void addElement(ErStackTraceElement element){
  if (className == null) {
    declaringClass=element.getDeclaringClass();
    if (declaringClass.contains(".")) {
      className=declaringClass.substring(declaringClass.lastIndexOf(".") + 1);
      packageName=declaringClass.substring(0,declaringClass.lastIndexOf("."));
    }
 else {
      className=declaringClass;
      packageName="";
    }
    fileName=element.getFileName();
    if (checkBasePackages(declaringClass)) {
      isBasePackage=true;
    }
  }
  stackTraceElements.add(element);
}

public void addElement ( ErStackTraceElement element ) { if ( className == null ) { declaringClass = element . getDeclaringClass ( ) ; if ( declaringClass . contains ( "." ) ) { className = declaringClass . substring ( declaringClass . lastIndexOf ( "." ) + 1 ) ; packageName = declaringClass . substring ( 0 , declaringClass . lastIndexOf ( "." ) ) ; } else { className = declaringClass ; packageName = "" ; } fileName = element . getFileName ( ) ; if ( checkBasePackages ( declaringClass ) ) { isBasePackage = true ; } } stackTraceElements . add ( element ) ; }
add stack trace element
