• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc.  All rights reserved.
3 //
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
7 
8 package com.google.protobuf;
9 
10 import static java.lang.annotation.ElementType.METHOD;
11 import static java.lang.annotation.RetentionPolicy.CLASS;
12 
13 import java.lang.annotation.Documented;
14 import java.lang.annotation.Retention;
15 import java.lang.annotation.Target;
16 
17 /**
18  * Indicates that the return value of the annotated method can be safely ignored.
19  *
20  * <p>This is the opposite of {@link CheckReturnValue}. It can be used inside classes or packages
21  * annotated with {@code @CheckReturnValue} to exempt specific methods from the default.
22  */
23 @Documented
24 @Target(METHOD) // TODO: consider adding CONSTRUCTOR later if necessary
25 @Retention(CLASS)
26 @interface CanIgnoreReturnValue {}
27