From: Javen O'Neal Date: Mon, 13 Jun 2016 05:06:47 +0000 (+0000) Subject: findbugs: fix URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD warnings X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b148307f0febec4230a45583290b0de8d7a488c2;p=poi.git findbugs: fix URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748085 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFLatentStyles.java b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFLatentStyles.java index bf9cafaec5..da8b9836c5 100644 --- a/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFLatentStyles.java +++ b/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFLatentStyles.java @@ -19,7 +19,8 @@ package org.apache.poi.xwpf.usermodel; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLatentStyles; import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTLsdException; -public class XWPFLatentStyles { +public class XWPFLatentStyles { + // As of 2016-06-10, POI does not contain a LatentStyle class, nor was one included in the patch for bug 48574. protected XWPFStyles styles; //LatentStyle shall know styles private CTLatentStyles latentStyles; diff --git a/src/resources/devtools/findbugs-filters.xml b/src/resources/devtools/findbugs-filters.xml index b2152bcf48..318db2b114 100644 --- a/src/resources/devtools/findbugs-filters.xml +++ b/src/resources/devtools/findbugs-filters.xml @@ -64,6 +64,16 @@ + + + + + + + + + + diff --git a/src/scratchpad/src/org/apache/poi/hslf/blip/Metafile.java b/src/scratchpad/src/org/apache/poi/hslf/blip/Metafile.java index 55a62ebffa..a04ddc1986 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/blip/Metafile.java +++ b/src/scratchpad/src/org/apache/poi/hslf/blip/Metafile.java @@ -37,7 +37,7 @@ import org.apache.poi.util.Units; public abstract class Metafile extends HSLFPictureData { /** - * A structure which represents a 34-byte header preceeding the compressed metafile data + * A structure which represents a 34-byte header preceding the compressed metafile data * * @author Yegor Kozlov */ @@ -66,7 +66,7 @@ public abstract class Metafile extends HSLFPictureData { /** * Reserved. Always 0. */ - public int compression; + public int compression = 0; /** * Reserved. Always 254.