Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,21 @@ class by appending the class name to guava.dev. For example,
[using Guava in your build]: https://github.com/google/guava/wiki/UseGuavaInYourBuild
[repackage]: https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-if-i-want-to-use-beta-apis-from-a-library-that-people-use-as-a-dependency
[guava-deps]: https://github.com/google/guava/wiki/UseGuavaInYourBuild#what-about-guavas-own-dependencies

## Using Error Prone with IntelliJ IDEA

If you're using IntelliJ IDEA and want to enable [Error Prone](https://errorprone.info), follow these steps:

1. Open IntelliJ IDEA and go to **Settings > Compiler > Java Compiler**.
2. Under **Additional command line parameters**, add:

```
-Xplugin:ErrorProne
```

3. Download the [Error Prone compiler jar](https://errorprone.info/docs/installation#intellij-idea) and attach it in your project settings:
- Go to **Settings > Build, Execution, Deployment > Compiler > Java Compiler**
- Under "Use compiler," select **Javac with custom path**
- Provide the path to the downloaded `error_prone_core-xxx.jar`

> 🔧 Note: If you don't configure Error Prone correctly, you may face errors like:
2 changes: 1 addition & 1 deletion guava/src/com/google/common/reflect/TypeVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
*
* @author Ben Yu
*/
abstract class TypeVisitor {
public abstract class TypeVisitor {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is going to be make public we need to ad JDoc


private final Set<Type> visited = new HashSet<>();

Expand Down