From 40f448f4c8503fdb7bb20a09827ae73f2c1ee535 Mon Sep 17 00:00:00 2001 From: Liam Miller-Cushon Date: Tue, 9 Jul 2024 09:03:55 -0700 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 650648266 --- .../com/google/caliper/worker/handler/RequestTypeKey.java | 4 ++++ .../google/caliper/worker/instrument/InstrumentTypeKey.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/caliper-worker/src/main/java/com/google/caliper/worker/handler/RequestTypeKey.java b/caliper-worker/src/main/java/com/google/caliper/worker/handler/RequestTypeKey.java index b3690978..7ef7d87a 100644 --- a/caliper-worker/src/main/java/com/google/caliper/worker/handler/RequestTypeKey.java +++ b/caliper-worker/src/main/java/com/google/caliper/worker/handler/RequestTypeKey.java @@ -16,8 +16,11 @@ package com.google.caliper.worker.handler; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + import com.google.caliper.bridge.WorkerRequest; import dagger.MapKey; +import java.lang.annotation.Retention; /** * Specifies the type of request a {@link RequestHandler} handles. @@ -25,6 +28,7 @@ * @autor Colin Decker */ @MapKey +@Retention(RUNTIME) @interface RequestTypeKey { Class value(); } diff --git a/caliper-worker/src/main/java/com/google/caliper/worker/instrument/InstrumentTypeKey.java b/caliper-worker/src/main/java/com/google/caliper/worker/instrument/InstrumentTypeKey.java index e26598de..714c0a5b 100644 --- a/caliper-worker/src/main/java/com/google/caliper/worker/instrument/InstrumentTypeKey.java +++ b/caliper-worker/src/main/java/com/google/caliper/worker/instrument/InstrumentTypeKey.java @@ -16,14 +16,18 @@ package com.google.caliper.worker.instrument; +import static java.lang.annotation.RetentionPolicy.RUNTIME; + import com.google.caliper.model.InstrumentType; import dagger.MapKey; +import java.lang.annotation.Retention; /** * Specifies the type of instrument to use as a key in the map of available {@link Worker workers} * passed to {@link #provideWorker(Map)}. */ @MapKey +@Retention(RUNTIME) public @interface InstrumentTypeKey { InstrumentType value(); }