Guest User

Untitled

a guest
Jul 23rd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. String sMethodName =
  2. new String(Thread.currentThread().getStackTrace()[2].getMethodName());
  3. String sClassName =
  4. new String(Thread.currentThread().getStackTrace()[2].getClassName());
  5. System.out.println("@ Called from " + sClassName + "/" + sMethodName + "()");
  6.  
  7. @ Called from sometests.ClaseA / foo()
Add Comment
Please, Sign In to add comment