Skip to content

Commit 3773d0b

Browse files
authored
Update errorprone (open-telemetry#4134)
1 parent 3cabcc7 commit 3773d0b

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

api/all/src/main/java/io/opentelemetry/api/common/Attributes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ static <T, U, V, W> Attributes of(
117117
* Returns a {@link Attributes} instance with five key-value pairs. Order of the keys is not
118118
* preserved. Duplicate keys will be removed.
119119
*/
120+
@SuppressWarnings("TooManyParameters")
120121
static <T, U, V, W, X> Attributes of(
121122
AttributeKey<T> key1,
122123
T value1,

buildSrc/src/main/kotlin/otel.errorprone-conventions.gradle.kts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ tasks {
5050

5151
// Limits APIs
5252
disable("NoFunctionalReturnType")
53+
disable("PreferredInterfaceType")
5354

5455
// We don't depend on Guava so use normal splitting
5556
disable("StringSplitter")
@@ -61,10 +62,10 @@ tasks {
6162
// We don't get much benefit from it anyways.
6263
disable("InlineMeSuggester")
6364

64-
// Prevents defensive null checks, and we have nullaway anyways
65+
// We have nullaway so don't need errorprone nullable checks which have more false positives.
66+
disable("FieldMissingNullable")
6567
disable("ParameterMissingNullable")
66-
67-
// javax.annotation.Nullable doesn't support annotating type parameters
68+
disable("ReturnMissingNullable")
6869
disable("VoidMissingNullable")
6970

7071
// Only used in comments, but couldn't SuppressWarnings for some reason
@@ -73,9 +74,6 @@ tasks {
7374
if (name.contains("Jmh") || name.contains("Test")) {
7475
// Allow underscore in test-type method names
7576
disable("MemberName")
76-
77-
// We only enable null checking on main sources
78-
disable("FieldMissingNullable")
7977
}
8078

8179
option("NullAway:CustomContractAnnotations", "io.opentelemetry.api.internal.Contract")

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val DEPENDENCY_SETS = listOf(
3232
),
3333
DependencySet(
3434
"com.google.errorprone",
35-
"2.10.0",
35+
"2.11.0",
3636
listOf("error_prone_annotations", "error_prone_core")
3737
),
3838
DependencySet(

0 commit comments

Comments
 (0)