@ Benchmark @ BenchmarkMode ( Mode . Throughput ) @ SuppressWarnings ( "removal" ) public Class < ? > sunReflection ( ) { return sun . reflect . Reflection . getCallerClass ( 1 ) ; }
Benchmarks extracting a class via Sun reflection .