Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 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
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ private static AlertingSubsystem getAlertMonitor(
AlertConfiguration.builder()
.setType(AlertMetricType.CPU)
.setEnabled(true)
.setThreshold((float) 80)
.setThreshold(80.0f)
.setProfileDurationSeconds(30)
.setCooldownSeconds(14400)
.build(),
AlertConfiguration.builder()
.setType(AlertMetricType.MEMORY)
.setEnabled(true)
.setThreshold((float) 20)
.setThreshold(20.0f)
.setProfileDurationSeconds(120)
.setCooldownSeconds(14400)
.build(),
Expand Down Expand Up @@ -89,14 +89,14 @@ void manualAlertWorks() {
AlertConfiguration.builder()
.setType(AlertMetricType.CPU)
.setEnabled(true)
.setThreshold((float) 80)
.setThreshold(80.0f)
.setProfileDurationSeconds(30)
.setCooldownSeconds(14400)
.build(),
AlertConfiguration.builder()
.setType(AlertMetricType.MEMORY)
.setEnabled(true)
.setThreshold((float) 20)
.setThreshold(20.0f)
.setProfileDurationSeconds(120)
.setCooldownSeconds(14400)
.build(),
Expand Down Expand Up @@ -130,14 +130,14 @@ void manualAlertDoesNotTriggerAfterExpired() {
AlertConfiguration.builder()
.setType(AlertMetricType.CPU)
.setEnabled(true)
.setThreshold((float) 80)
.setThreshold(80.0f)
.setProfileDurationSeconds(30)
.setCooldownSeconds(14400)
.build(),
AlertConfiguration.builder()
.setType(AlertMetricType.MEMORY)
.setEnabled(true)
.setThreshold((float) 20)
.setThreshold(20.0f)
.setProfileDurationSeconds(120)
.setCooldownSeconds(14400)
.build(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void saneDataIsParsed() {
AlertConfiguration.builder()
.setType(AlertMetricType.CPU)
.setEnabled(true)
.setThreshold((float) 80)
.setThreshold(80.0f)
.setProfileDurationSeconds(30)
.setCooldownSeconds(14400)
.build());
Expand All @@ -53,7 +53,7 @@ void saneDataIsParsed() {
AlertConfiguration.builder()
.setType(AlertMetricType.MEMORY)
.setEnabled(true)
.setThreshold((float) 20)
.setThreshold(20.0f)
.setProfileDurationSeconds(120)
.setCooldownSeconds(14400)
.build());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ tasks {

// Don't support Android without desugar
disable("AndroidJdkLibsChecker")
disable("Java7ApiChecker")
disable("StaticOrDefaultInterfaceMethod")

// needed temporarily while hosting azure-monitor-opentelemetry-exporter in this repo
Expand All @@ -70,6 +69,10 @@ tasks {
// cognitive load is dubious.
disable("YodaCondition")

// New checks in ErrorProne 2.38.0 that we want to disable
disable("AddNullMarkedToPackageInfo") // requires JSpecify dependency not compatible with Java 8
disable("TimeInStaticInitializer") // from 2.37.0

if (name.contains("Jmh")) {
disable("MemberName")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void setException(Throwable throwable, int stackSize) {
this.throwable = throwable;
}

@SuppressWarnings("EnumOrdinal")
public void setSeverityLevel(SeverityLevel severityLevel) {
data.setSeverityLevel(
severityLevel == null
Expand All @@ -65,6 +66,7 @@ public void setSeverityLevel(SeverityLevel severityLevel) {
}

@Nullable
@SuppressWarnings("EnumOrdinal")
public SeverityLevel getSeverityLevel() {
return data.getSeverityLevel() == null
? null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void setMessage(String message) {
data.setMessage(message);
}

@SuppressWarnings("EnumOrdinal")
public void setSeverityLevel(SeverityLevel severityLevel) {
data.setSeverityLevel(
severityLevel == null
Expand All @@ -56,6 +57,7 @@ public void setSeverityLevel(SeverityLevel severityLevel) {
}

@Nullable
@SuppressWarnings("EnumOrdinal")
public SeverityLevel getSeverityLevel() {
return data.getSeverityLevel() == null
? null
Expand Down
2 changes: 1 addition & 1 deletion dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ val DEPENDENCY_BOMS = listOf(

val autoServiceVersion = "1.1.1"
val autoValueVersion = "1.11.0"
val errorProneVersion = "2.36.0"
val errorProneVersion = "2.38.0"
val jmhVersion = "1.37"
val mockitoVersion = "4.11.0"
val slf4jVersion = "2.0.17"
Expand Down
4 changes: 2 additions & 2 deletions licenses/more-licenses.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# agent
## Dependency License Report
_2025-07-07 18:29:51 UTC_
_2025-07-07 20:26:33 PDT_
## Apache License, Version 2.0

**1** **Group:** `com.fasterxml.jackson.core` **Name:** `jackson-annotations` **Version:** `2.18.3`
Expand Down Expand Up @@ -36,7 +36,7 @@ _2025-07-07 18:29:51 UTC_
> - **POM Project URL**: [http://stephenc.github.com/jcip-annotations](http://stephenc.github.com/jcip-annotations)
> - **POM License**: Apache License, Version 2.0 - [https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)

**6** **Group:** `com.google.errorprone` **Name:** `error_prone_annotations` **Version:** `2.36.0`
**6** **Group:** `com.google.errorprone` **Name:** `error_prone_annotations` **Version:** `2.38.0`
> - **Manifest Project URL**: [https://errorprone.info/error_prone_annotations](https://errorprone.info/error_prone_annotations)
> - **Manifest License**: Apache License, Version 2.0 (Not Packaged)
> - **POM License**: Apache License, Version 2.0 - [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
Expand Down