diff --git a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/ProxyNonConstantType.java b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/ProxyNonConstantType.java index f6abdd29f..a80585fae 100644 --- a/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/ProxyNonConstantType.java +++ b/baseline-error-prone/src/main/java/com/palantir/baseline/errorprone/ProxyNonConstantType.java @@ -38,7 +38,7 @@ name = "ProxyNonConstantType", link = "https://github.com/palantir/gradle-baseline#baseline-error-prone-checks", linkType = LinkType.CUSTOM, - severity = SeverityLevel.SUGGESTION, + severity = SeverityLevel.WARNING, summary = "Proxy instances should be created using constant types known at compile time to allow native-image " + "behavior to match hotspot. Methods which build proxies should take a " + "`Function` instead of arbitrary class references. " diff --git a/changelog/@unreleased/pr-1816.v2.yml b/changelog/@unreleased/pr-1816.v2.yml new file mode 100644 index 000000000..6af1414e3 --- /dev/null +++ b/changelog/@unreleased/pr-1816.v2.yml @@ -0,0 +1,5 @@ +type: improvement +improvement: + description: Upgrade ProxyNonConstantType to WARNING (from suggestion) + links: + - https://github.com/palantir/gradle-baseline/pull/1816