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
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,9 @@ tasks {
// cognitive load is dubious.
disable("YodaCondition")

// Requires adding compile dependency to JSpecify
disable("AddNullMarkedToPackageInfo")

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
2 changes: 1 addition & 1 deletion licenses/more-licenses.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _2025-07-08 14:53:50 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
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("TimeInStaticInitializer")
public class MockedProfilerSettingsServlet extends HttpServlet {

private static final Map<ProfilerState, String> CONFIGS;
Expand Down