Skip to content

Commit 3889d53

Browse files
Copilotxiang17
andauthored
Upgrade Error Prone to 2.46.0 with Java 8 target compatibility (#4605)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: xiang17 <9310587+xiang17@users.noreply.github.com> Co-authored-by: Sean Li <xili9@microsoft.com>
1 parent 9f41c75 commit 3889d53

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

agent/agent-gc-monitor/gc-monitor-api/gradle.lockfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is expected to be part of source control.
44
com.azure:azure-sdk-bom:1.3.3=runtimeClasspath
55
com.fasterxml.jackson:jackson-bom:2.20.1=runtimeClasspath
6-
com.google.errorprone:error_prone_annotations:2.44.0=runtimeClasspath
6+
com.google.errorprone:error_prone_annotations:2.46.0=runtimeClasspath
77
io.netty:netty-bom:4.2.9.Final=runtimeClasspath
88
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.21.0-alpha=runtimeClasspath
99
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.21.0=runtimeClasspath

agent/agent-gc-monitor/gc-monitor-core/gradle.lockfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This file is expected to be part of source control.
44
com.azure:azure-sdk-bom:1.3.3=runtimeClasspath
55
com.fasterxml.jackson:jackson-bom:2.20.1=runtimeClasspath
6-
com.google.errorprone:error_prone_annotations:2.44.0=runtimeClasspath
6+
com.google.errorprone:error_prone_annotations:2.46.0=runtimeClasspath
77
io.netty:netty-bom:4.2.9.Final=runtimeClasspath
88
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom-alpha:2.21.0-alpha=runtimeClasspath
99
io.opentelemetry.instrumentation:opentelemetry-instrumentation-bom:2.21.0=runtimeClasspath

agent/agent-tooling/gradle.lockfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ com.fasterxml.jackson.core:jackson-databind:2.20.1=runtimeClasspath
2121
com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.20.1=runtimeClasspath
2222
com.fasterxml.jackson:jackson-bom:2.20.1=runtimeClasspath
2323
com.github.oshi:oshi-core:6.9.1=runtimeClasspath
24-
com.google.errorprone:error_prone_annotations:2.44.0=runtimeClasspath
24+
com.google.errorprone:error_prone_annotations:2.46.0=runtimeClasspath
2525
com.microsoft.azure:msal4j-persistence-extension:1.3.0=runtimeClasspath
2626
com.microsoft.azure:msal4j:1.23.1=runtimeClasspath
2727
commons-codec:commons-codec:1.20.0=runtimeClasspath

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ tasks {
8383

8484
// Requires adding compile dependency to JSpecify
8585
disable("AddNullMarkedToPackageInfo")
86+
87+
// AddNullMarkedToClass also requires JSpecify and causes "unknown enum constant ElementType.MODULE"
88+
// warnings when compiling with --release 8, even though we use JDK 21 for compilation.
89+
// See: https://github.com/jspecify/jspecify/wiki/version-compatibility
90+
disable("AddNullMarkedToClass")
8691
}
8792
}
8893
}

dependencyManagement/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ val DEPENDENCY_BOMS = listOf(
2929

3030
val autoServiceVersion = "1.1.1"
3131
val autoValueVersion = "1.11.1"
32-
val errorProneVersion = "2.44.0"
32+
val errorProneVersion = "2.46.0"
3333
val jmhVersion = "1.37"
3434
val mockitoVersion = "4.11.0"
3535
val slf4jVersion = "2.0.17"

licenses/more-licenses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# agent
33
## Dependency License Report
4-
_2026-01-23 17:04:25 UTC_
4+
_2026-02-04 17:34:04 PST_
55
## Apache License, Version 2.0
66

77
**1** **Group:** `com.fasterxml.jackson.core` **Name:** `jackson-annotations` **Version:** `2.20`
@@ -32,7 +32,7 @@ _2026-01-23 17:04:25 UTC_
3232
> - **Embedded license files**: [jackson-datatype-jsr310-2.20.1.jar/META-INF/LICENSE](jackson-datatype-jsr310-2.20.1.jar/META-INF/LICENSE)
3333
- [jackson-datatype-jsr310-2.20.1.jar/META-INF/NOTICE](jackson-datatype-jsr310-2.20.1.jar/META-INF/NOTICE)
3434

35-
**5** **Group:** `com.google.errorprone` **Name:** `error_prone_annotations` **Version:** `2.44.0`
35+
**5** **Group:** `com.google.errorprone` **Name:** `error_prone_annotations` **Version:** `2.46.0`
3636
> - **Manifest Project URL**: [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations)
3737
> - **Manifest License**: Apache License, Version 2.0 (Not Packaged)
3838
> - **POM License**: Apache License, Version 2.0 - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)

0 commit comments

Comments
 (0)