From 1162d8b56398f7b481e3096c5769c9d21b88f451 Mon Sep 17 00:00:00 2001 From: Judit Knoll Date: Mon, 30 Oct 2023 10:24:59 +0100 Subject: [PATCH] Lower the priority of PA_PUBLIC_MUTABLE_OBJECT_ATTRIBUTE --- CHANGELOG.md | 1 + .../java/edu/umd/cs/findbugs/detect/FindPublicAttributes.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9968aaff8e1..925109b8789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ Currently the versioning policy of this project follows [Semantic Versioning v2. - Fix exception escapes when calling functions of JUnit Assert or Assertions ([[#2640](https://github.com/spotbugs/spotbugs/issues/2640)]) - Fixed an error in the SARIF export when a bug annotation is missing ([[#2632](https://github.com/spotbugs/spotbugs/issues/2632)]) - Fixed false positive RV_EXCEPTION_NOT_THROWN when asserting to exception throws ([[#2628](https://github.com/spotbugs/spotbugs/issues/2628)]) +- Lowered the priority of `PA_PUBLIC_MUTABLE_OBJECT_ATTRIBUTE` bug ([[#2652](https://github.com/spotbugs/spotbugs/issues/2652)]) ### Build - Fix deprecated GHA on '::set-output' by using GITHUB_OUTPUT ([[#2651](https://github.com/spotbugs/spotbugs/pull/2651)]) diff --git a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindPublicAttributes.java b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindPublicAttributes.java index 1eef1270214..0ad72de15aa 100644 --- a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindPublicAttributes.java +++ b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindPublicAttributes.java @@ -187,7 +187,7 @@ public void sawOpcode(int seen) { bugReporter.reportBug(new BugInstance(this, "PA_PUBLIC_MUTABLE_OBJECT_ATTRIBUTE", - NORMAL_PRIORITY) + LOW_PRIORITY) .addClass(this).addField(field).addSourceLine(sla)); writtenFields.add(field); }