Skip to content

Commit

Permalink
Annotate Key with @CheckReturnValue
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 391859733
  • Loading branch information
amalloy authored and Guice Team committed Aug 19, 2021
1 parent db3f41b commit b007a40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/com/google/inject/Key.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static com.google.inject.internal.Annotations.generateAnnotation;
import static com.google.inject.internal.Annotations.isAllDefaultMethods;

import com.google.errorprone.annotations.CheckReturnValue;
import com.google.inject.internal.Annotations;
import com.google.inject.internal.MoreTypes;
import java.lang.annotation.Annotation;
Expand All @@ -47,6 +48,7 @@
*
* @author [email protected] (Bob Lee)
*/
@CheckReturnValue
public class Key<T> {

private final AnnotationStrategy annotationStrategy;
Expand Down

0 comments on commit b007a40

Please sign in to comment.