FileDocCategorySizeDatePackage
SunReflectFilter.javaAPI DocApache log4j 1.2.151673Sat Aug 25 00:09:34 BST 2007org.apache.log4j.util

SunReflectFilter

public class SunReflectFilter extends Object implements Filter
The sun.reflect.* and java.lang.reflect.* lines are not present in all JDKs.
author
Ceki Gulcu

Fields Summary
org.apache.oro.text.perl.Perl5Util
util
Constructors Summary
Methods Summary
public java.lang.Stringfilter(java.lang.String in)


      
    if(in == null) {
      return null;
    }
    if (util.match("/at sun.reflect/", in)) {
      return null;
    }
    if (in.indexOf("at java.lang.reflect.Method") >= 0) {
      return null;
    }
    if (in.indexOf("Compiled Code") >= 0) {
        if(in.indexOf("junit.framework.TestSuite") >= 0) {
            return util.substitute("s/Compiled Code/TestSuite.java:XXX/", in);
        }
    }
    if (util.match("/\\(Method.java:.*\\)/", in)) {
      return util.substitute("s/\\(Method.java:.*\\)/(Native Method)/", in);
    }
    return in;