* Helper for working with Data Validation
*/
public class HSSFDataValidationHelper implements DataValidationHelper {
- @SuppressWarnings("unused")
- private HSSFSheet sheet;
+ //URF_UNREAD_FIELD
+ //private HSSFSheet sheet;
public HSSFDataValidationHelper(HSSFSheet sheet) {
super();
- this.sheet = sheet;
+ //this.sheet = sheet;
}
/*
super(spContainer, objRecord, textObjectRecord);
}
- HSSFRichTextString string = new HSSFRichTextString("");
+ //Unused: URF_UNREAD_FIELD
+ //HSSFRichTextString string = new HSSFRichTextString("");
/**
* Construct a new textbox with the given parent and anchor.
*
*/
public class XSSFDataValidationHelper implements DataValidationHelper {
- private XSSFSheet xssfSheet;
+ //Unused: URF_UNREAD_FIELD
+ //private XSSFSheet xssfSheet;
public XSSFDataValidationHelper(XSSFSheet xssfSheet) {
super();
- this.xssfSheet = xssfSheet;
+ //this.xssfSheet = xssfSheet;
}
/* (non-Javadoc)
private static CTGraphicalObjectFrame prototype = null;
private CTGraphicalObjectFrame graphicFrame;
- private XSSFDrawing drawing;
+ // Unused: URF_UNREAD_FIELD
+ //private XSSFDrawing drawing;
private XSSFClientAnchor anchor;
/**
</Or>
<Bug code="Nm" />
</Match>
+
+ <!-- ignore fields that correspond to the values in a H??F binary record -->
+ <Match>
+ <Class name="~org\.apache\.poi\.h..f\..*"/>
+ <Bug pattern="URF_UNREAD_FIELD" />
+ <Field name="~field_[12345].*" />
+ </Match>
<Match>
- <Class name="org.apache.poi.hpsf.Decimal"/>
+ <Class name="org.apache.poi.hssf.usermodel.HSSFChart"/>
<Bug pattern="URF_UNREAD_FIELD" />
- <Field name="field_[12345]_.+" />
+ <Field name="chartTitleFormat" />
</Match>
+ <Match>
+ <Class name="org.apache.poi.hwmf.record.HwmfWindowing"/>
+ <Bug pattern="URF_UNREAD_FIELD" />
+ <Field name="count2" />
+ </Match>
+
+
<!-- invalid performance issues - e.g. see #57840 -->
<Match>
- <Class name="org.apache.poi.xssf.usermodel.XSSFRow"/>
- <Bug pattern="DM_NUMBER_CTOR" />
- </Match>
- <Match>
- <Class name="org.apache.poi.xssf.usermodel.XSSFSheet"/>
+ <Or>
+ <Class name="org.apache.poi.xssf.usermodel.XSSFRow"/>
+ <Class name="org.apache.poi.xssf.usermodel.XSSFSheet"/>
+ </Or>
<Bug pattern="DM_NUMBER_CTOR" />
</Match>