@Test public void currentNamespace() { assertEquals("com.baidu.unbiz.common.RuntimeUtilTest.currentNamespace", RuntimeUtil.currentNamespace()); }
public static String currentNamespace() { StackTraceElement[] ste = new Exception().getStackTrace(); int ndx = (ste.length > 1) ? 1 : 0; StackTraceElement current = new Exception().getStackTrace()[ndx]; return current.getClassName() + "." + current.getMethodName(); }
RuntimeUtil { public static String currentNamespace() { StackTraceElement[] ste = new Exception().getStackTrace(); int ndx = (ste.length > 1) ? 1 : 0; StackTraceElement current = new Exception().getStackTrace()[ndx]; return current.getClassName() + "." + current.getMethodName(); } }
RuntimeUtil { public static String currentNamespace() { StackTraceElement[] ste = new Exception().getStackTrace(); int ndx = (ste.length > 1) ? 1 : 0; StackTraceElement current = new Exception().getStackTrace()[ndx]; return current.getClassName() + "." + current.getMethodName(); }  }
RuntimeUtil { public static String currentNamespace() { StackTraceElement[] ste = new Exception().getStackTrace(); int ndx = (ste.length > 1) ? 1 : 0; StackTraceElement current = new Exception().getStackTrace()[ndx]; return current.getClassName() + "." + current.getMethodName(); }  static String currentClassMethod(); static String currentMethodName(); static String currentClassName(); static String currentNamespace(); static String classLocation(Class<?> clazz); static String classLocation(); }
RuntimeUtil { public static String currentNamespace() { StackTraceElement[] ste = new Exception().getStackTrace(); int ndx = (ste.length > 1) ? 1 : 0; StackTraceElement current = new Exception().getStackTrace()[ndx]; return current.getClassName() + "." + current.getMethodName(); }  static String currentClassMethod(); static String currentMethodName(); static String currentClassName(); static String currentNamespace(); static String classLocation(Class<?> clazz); static String classLocation();  }