Last active
October 6, 2019 14:01
-
-
Save alex-ber/f2bcf04c3cb64b3bac6fa53331146c88 to your computer and use it in GitHub Desktop.
Currently executing method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeClass { | |
public void foo(){ | |
class Local {}; | |
String name = Local.class.getEnclosingMethod().getName(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment