mirror of https://github.com/apache/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
This commit is contained in:
parent
a9c0342b1d
commit
288b0b46b9
|
@ -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;
|
||||
|
||||
|
|
|
@ -64,6 +64,16 @@
|
|||
<Bug pattern="URF_UNREAD_FIELD" />
|
||||
<Field name="count2" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Class name="org.apache.poi.xwpf.usermodel.XWPFLatentStyles"/>
|
||||
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
|
||||
<Field name="styles" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Class name="org.apache.poi.hslf.blip.Metafile"/>
|
||||
<Bug pattern="URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD" />
|
||||
<Field name="compression" />
|
||||
</Match>
|
||||
|
||||
|
||||
<!-- invalid performance issues - e.g. see #57840 -->
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue