Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String sMethodName =
- new String(Thread.currentThread().getStackTrace()[2].getMethodName());
- String sClassName =
- new String(Thread.currentThread().getStackTrace()[2].getClassName());
- System.out.println("@ Called from " + sClassName + "/" + sMethodName + "()");
- @ Called from sometests.ClaseA / foo()
Add Comment
Please, Sign In to add comment