You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ss...@apache.org on 2023/07/26 10:45:48 UTC
[xmlgraphics-commons] branch main updated: Allow spotbugs to pass
This is an automated email from the ASF dual-hosted git repository.
ssteiner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/xmlgraphics-commons.git
The following commit(s) were added to refs/heads/main by this push:
new e7fd816 Allow spotbugs to pass
e7fd816 is described below
commit e7fd816011716dd28e12582badc286275f0d5630
Author: Simon Steiner <ss...@apache.org>
AuthorDate: Wed Jul 26 11:45:37 2023 +0100
Allow spotbugs to pass
---
.../org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java | 2 +-
src/tools/resources/findbugs/exclusions.xml | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java b/src/main/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java
index 88e7dcb..c484a45 100644
--- a/src/main/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java
+++ b/src/main/java/org/apache/xmlgraphics/image/loader/cache/ImageCacheStatistics.java
@@ -75,7 +75,7 @@ public class ImageCacheStatistics implements ImageCacheListener {
if (v == null) {
v = 1;
} else {
- v++;
+ v += 1;
}
map.put(key, v);
}
diff --git a/src/tools/resources/findbugs/exclusions.xml b/src/tools/resources/findbugs/exclusions.xml
index f5f2d49..935cb56 100644
--- a/src/tools/resources/findbugs/exclusions.xml
+++ b/src/tools/resources/findbugs/exclusions.xml
@@ -4,6 +4,8 @@
<Or>
<Bug pattern="EI_EXPOSE_REP"/>
<Bug pattern="EI_EXPOSE_REP2"/>
+ <Bug pattern="MC_OVERRIDABLE_METHOD_CALL_IN_CONSTRUCTOR"/>
+ <Bug pattern="MS_EXPOSE_REP"/>
</Or>
</Match>
<Match>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org