Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 650648266
  • Loading branch information
cushon authored and Caliper Team committed Jul 9, 2024
1 parent 48c690f commit 40f448f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,19 @@

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.
*
* @autor Colin Decker
*/
@MapKey
@Retention(RUNTIME)
@interface RequestTypeKey {
Class<? extends WorkerRequest> value();
}
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 40f448f

Please sign in to comment.