Skip to main content
added 3 characters in body
Source Link
Rein
  • 2.6k
  • 1
  • 18
  • 9

In Java7+ you can do this in static methods/fields:

MethodHandles.lookup().getClasslookupClass() 

In Java7+ you can do this in static methods/fields:

MethodHandles.lookup().getClass() 

In Java7+ you can do this in static methods/fields:

MethodHandles.lookup().lookupClass() 
Source Link
Rein
  • 2.6k
  • 1
  • 18
  • 9

In Java7+ you can do this in static methods/fields:

MethodHandles.lookup().getClass()