aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-06-13 05:34:02 +0000
committerJaven O'Neal <onealj@apache.org>2016-06-13 05:34:02 +0000
commit2df9f76acf87d172adf1331d5992fa8c7e2668c6 (patch)
tree38e6eff5a1ce2916a932065da9a4c0db5033c7cf
parent288b0b46b9846a9e3a20d25e6537b00137183387 (diff)
downloadpoi-2df9f76acf87d172adf1331d5992fa8c7e2668c6.tar.gz
poi-2df9f76acf87d172adf1331d5992fa8c7e2668c6.zip
findbugs: fix URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD and UUF_UNUSED_FIELD warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748086 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java3
-rw-r--r--src/resources/devtools/findbugs-filters.xml8
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
index d512521388..2e4bb5c809 100644
--- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
+++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
@@ -74,7 +74,8 @@ public class XWPFTable implements IBodyElement, ISDTContents {
protected StringBuffer text = new StringBuffer();
protected List<XWPFTableRow> tableRows;
- protected List<String> styleIDs;
+ // Unused: UUF_UNUSED_PUBLIC_OR_PROTECTED_FIELD
+ //protected List<String> styleIDs;
protected IBody part;
private CTTbl ctTbl;
diff --git a/src/resources/devtools/findbugs-filters.xml b/src/resources/devtools/findbugs-filters.xml
index 318db2b114..eedae72994 100644
--- a/src/resources/devtools/findbugs-filters.xml
+++ b/src/resources/devtools/findbugs-filters.xml
@@ -74,6 +74,14 @@
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
<Field name="compression" />
</Match>
+ <Match>
+ <Class name="org.apache.poi.hwmf.record.HwmfFont"/>
+ <Bug pattern="UUF_UNUSED_FIELD" />
+ <Or>
+ <Field name="family" />
+ <Field name="pitch" />
+ </Or>
+ </Match>
<!-- invalid performance issues - e.g. see #57840 -->