google / google/error-prone

"Did you mean to..." hint messages contain repeated text

Open
#1,126 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

Please answer these questions before submitting your issue. Thanks!

### What version of Error Prone are you using?

Not sure. Whatever is bundled with bazel version 0.17.2

### Does this issue reproduce with the latest release?

Have not tried

### What did you do?

Clone JGit and build from commit https://github.com/eclipse/jgit/commit/7d89f0a053f32e0ba6d0384cf73a70ce99190821

with the command:

```
bazel build --java_toolchain //tools:error_prone_warnings_toolchain //...
```

### What did you expect to see?

Various warnings are expected because we haven't been using error-prone regularly on this project.

### What did you see instead?

There are warnings about misuse of `ExpectedException`, but the hints to fix them contain repeated text, for example:

`Did you mean to remove this line or to remove this line or to remove this line?`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.