]> source.dussan.org Git - poi.git/commitdiff
findbugs: fix URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD and UUF_UNUSED_FIELD warnings
authorJaven O'Neal <onealj@apache.org>
Mon, 13 Jun 2016 05:34:02 +0000 (05:34 +0000)
committerJaven O'Neal <onealj@apache.org>
Mon, 13 Jun 2016 05:34:02 +0000 (05:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748086 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
src/resources/devtools/findbugs-filters.xml

index d512521388ce15cb8bde2d3039ad092e5a171d4f..2e4bb5c809ca00e5e7913b632e8ae07363d73efb 100644 (file)
@@ -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;
 
index 318db2b114d9a6fdfc848849889695404ee3af2a..eedae72994befa8ed433e9331e40cfdad7f2a7fb 100644 (file)
                <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 -->