void () { doTest(""" import com.google.errorprone.annotations.CanIgnoreReturnValue; import javax.annotation.CheckReturnValue; @CheckReturnValue class Test { int lookAtMe() { return 1; } @CanIgnoreReturnValue int ignoreMe() { return 2; } void run() { /*Result of 'Test.lookAtMe()' is ignored*/lookAtMe/**/(); // Bad! This line should produce a warning. ignoreMe(); // OK. This line should *not* produce a warning. } }"""); }