Skip to content

Instantly share code, notes, and snippets.

View Nithanim's full-sized avatar

Nithanim

  • Somewhere with trains
  • Austria
View GitHub Profile
@MetaInfServices(JavacAnnotationHandler.class)
@HandlerPriority(1024)
public class DetermineListenerTypesProcessor extends JavacAnnotationHandler<DetermineListenerTypes> {
@Override
public void handle(AnnotationValues<DetermineListenerTypes> av, JCTree.JCAnnotation jca, JavacNode jn) {
JavacNode parent = jn.up();
JCTree.JCClassDecl classDecl = (JCClassDecl) parent.get();
for (JCTree tree : classDecl.defs) {
if (tree instanceof JCTree.JCMethodDecl) {
# JMH 1.11.2 (released 319 days ago, please consider updating!)
# VM version: JDK 1.8.0_60, VM 25.60-b23
# VM invoker: C:\Program Files\Java\jdk1.8.0_60\jre\bin\java.exe
# VM options: -server
# Warmup: 10 iterations, 1 s each
# Measurement: 10 iterations, 1 s each
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: benchmark.ArithmeticBenchmark.testDivide