Skip to content
Merged
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
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<sonar-plugin-api.groupId>org.sonarsource.sonarqube</sonar-plugin-api.groupId>
<sonar-java.version>6.0.0.20538</sonar-java.version>

<errorprone.version>2.17.0</errorprone.version>
<errorprone.version>2.18.0</errorprone.version>
<nullaway.version>0.10.7</nullaway.version>
<errorprone.slf4j.version>0.1.16</errorprone.slf4j.version>
<autodispose2.version>2.1.1</autodispose2.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class ErrorAwayRulesDefinition implements RulesDefinition {
public static final String AUTODISPOSE2_REPOSITORY = "autodispose2";
public static final String PICNIC_REPOSITORY = "picnic-errorprone";

public static final int ERRORPRONE_REPOSITORY_RULES_COUNT = 411;
public static final int ERRORPRONE_REPOSITORY_RULES_COUNT = 412;
public static final int NULLAWAY_REPOSITORY_RULES_COUNT = 1;
public static final int ERRORPRONE_SLF4J_REPOSITORY_RULES_COUNT = 8;
public static final int AUTODISPOSE2_REPOSITORY_RULES_COUNT = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
The Java language automatically converts primitive types to their boxed
representations in some contexts (see
[JLS 5.1.7](https://docs.oracle.com/javase/specs/jls/se11/html/jls-5.html#jls-5.1.7)).

That is, prefer this:

```java
int x;
Integer y = x;
```

to the equivalent but more verbose explicit conversion:

```java
int x;
Integer y = Integer.valueOf(x);
```