You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [flags documentation](http://errorprone.info/docs/flags#maven) for
115
-
details on how to customize the plugin's behavior.
114
+
See the [flags documentation](https://errorprone.info/docs/flags#maven) for details on
115
+
how to customize the plugin's behavior.
116
116
117
117
## Gradle
118
118
@@ -214,7 +214,7 @@ javac \
214
214
ShortSet.java:8: error: [CollectionIncompatibleType] Argument 'i - 1' should not be passed to this method; its type int is not compatible with its collection's type argument Short
215
215
s.remove(i - 1);
216
216
^
217
-
(see http://errorprone.info/bugpattern/CollectionIncompatibleType)
217
+
(see https://errorprone.info/bugpattern/CollectionIncompatibleType)
Copy file name to clipboardExpand all lines: docs/patching.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,13 @@ In addition to reporting errors as part of your regular compile phase, Error Pro
11
11
error: [DeadException] Exception created but not thrown
12
12
new RuntimeException();
13
13
^
14
-
(see http://errorprone.info/bugpattern/DeadException)
14
+
(see https://errorprone.info/bugpattern/DeadException)
15
15
Did you mean 'throw new RuntimeException();'?
16
16
1 error
17
17
```
18
-
Here, Error Prone is suggesting to fix this issue by prepending a `throw` keyword to the code.
18
+
19
+
Here, Error Prone is suggesting to fix this issue by prepending a `throw`
20
+
keyword to the code.
19
21
20
22
While you can, of course, manually make these changes to your source code, you can also use Error Prone to modify the source code with the suggested replacements. This is useful when first adding Error Prone enforcement to an existing codebase, or for fixing warning-level issues that don't break the build (like [MissingOverride] or [DefaultCharset]).
0 commit comments