Eclipse automated refactor/cleanup: add missing @Override and @Deprecated annotations

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765726 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-10-19 21:52:31 +00:00
parent 9eef74edd1
commit 99125ee191
156 changed files with 478 additions and 143 deletions

View File

@ -311,6 +311,7 @@ public class CopyCompare
* <p>The method is called by POI's eventing API for each file in the * <p>The method is called by POI's eventing API for each file in the
* origin POIFS.</p> * origin POIFS.</p>
*/ */
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) { public void processPOIFSReaderEvent(final POIFSReaderEvent event) {
/* The following declarations are shortcuts for accessing the /* The following declarations are shortcuts for accessing the
* "event" object. */ * "event" object. */

View File

@ -61,6 +61,7 @@ public class ReadCustomPropertySets
static class MyPOIFSReaderListener implements POIFSReaderListener static class MyPOIFSReaderListener implements POIFSReaderListener
{ {
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
PropertySet ps = null; PropertySet ps = null;

View File

@ -54,6 +54,7 @@ public class ReadTitle
static class MyPOIFSReaderListener implements POIFSReaderListener static class MyPOIFSReaderListener implements POIFSReaderListener
{ {
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
SummaryInformation si = null; SummaryInformation si = null;

View File

@ -155,6 +155,7 @@ public class WriteAuthorAndTitle
* <p>The method is called by POI's eventing API for each file in the * <p>The method is called by POI's eventing API for each file in the
* origin POIFS.</p> * origin POIFS.</p>
*/ */
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
/* The following declarations are shortcuts for accessing the /* The following declarations are shortcuts for accessing the

View File

@ -133,7 +133,8 @@ public class XLS2CSVmra implements HSSFListener {
* Main HSSFListener method, processes events, and outputs the * Main HSSFListener method, processes events, and outputs the
* CSV as the file is processed. * CSV as the file is processed.
*/ */
public void processRecord(Record record) { @Override
public void processRecord(Record record) {
int thisRow = -1; int thisRow = -1;
int thisColumn = -1; int thisColumn = -1;
String thisStr = null; String thisStr = null;

View File

@ -40,6 +40,7 @@ public class EventExample
* This method listens for incoming records and handles them as required. * This method listens for incoming records and handles them as required.
* @param record The record that was found while reading. * @param record The record that was found while reading.
*/ */
@Override
public void processRecord(Record record) public void processRecord(Record record)
{ {
switch (record.getSid()) switch (record.getSid())

View File

@ -61,6 +61,7 @@ public class Outlines implements Closeable {
} }
} }
@Override
public void close() throws IOException { public void close() throws IOException {
wb.close(); wb.close();
} }

View File

@ -66,7 +66,8 @@ public class SVBorder extends AbstractBorder {
this.selected = selected; this.selected = selected;
} }
public void paintBorder(Component c, Graphics g, int x, int y, int width, @Override
public void paintBorder(Component c, Graphics g, int x, int y, int width,
int height) { int height) {
Color oldColor = g.getColor(); Color oldColor = g.getColor();

View File

@ -189,7 +189,8 @@ public class SVFractionalFormat extends Format {
throw new RuntimeException("Unexpected Case"); throw new RuntimeException("Unexpected Case");
} }
public StringBuffer format(Object obj, @Override
public StringBuffer format(Object obj,
StringBuffer toAppendTo, StringBuffer toAppendTo,
FieldPosition pos) { FieldPosition pos) {
if (obj instanceof Number) { if (obj instanceof Number) {
@ -199,19 +200,22 @@ public class SVFractionalFormat extends Format {
throw new IllegalArgumentException("Can only handle Numbers"); throw new IllegalArgumentException("Can only handle Numbers");
} }
public Object parseObject(String source, @Override
public Object parseObject(String source,
ParsePosition status) { ParsePosition status) {
//JMH TBD //JMH TBD
return null; return null;
} }
public Object parseObject(String source) @Override
public Object parseObject(String source)
throws ParseException { throws ParseException {
//JMH TBD //JMH TBD
return null; return null;
} }
public Object clone() { @Override
public Object clone() {
//JMH TBD //JMH TBD
return null; return null;
} }

View File

@ -44,9 +44,11 @@ public class SVRowHeader extends JList {
this.sheet = sheet; this.sheet = sheet;
} }
@Override
public int getSize() { public int getSize() {
return sheet.getLastRowNum() + 1; return sheet.getLastRowNum() + 1;
} }
@Override
public Object getElementAt(int index) { public Object getElementAt(int index) {
return Integer.toString(index+1); return Integer.toString(index+1);
} }
@ -69,6 +71,7 @@ public class SVRowHeader extends JList {
setFont(header.getFont()); setFont(header.getFont());
} }
@Override
public Component getListCellRendererComponent( JList list, public Component getListCellRendererComponent( JList list,
Object value, int index, boolean isSelected, boolean cellHasFocus) { Object value, int index, boolean isSelected, boolean cellHasFocus) {
Dimension d = getPreferredSize(); Dimension d = getPreferredSize();

View File

@ -114,6 +114,7 @@ public class SVSheetTable extends JTable {
} }
private class HeaderCellRenderer implements TableCellRenderer { private class HeaderCellRenderer implements TableCellRenderer {
@Override
public Component getTableCellRendererComponent(JTable table, Object value, public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) { boolean isSelected, boolean hasFocus, int row, int column) {
@ -128,6 +129,7 @@ public class SVSheetTable extends JTable {
this.formulaDisplay = formulaDisplay; this.formulaDisplay = formulaDisplay;
} }
@Override
public void valueChanged(ListSelectionEvent e) { public void valueChanged(ListSelectionEvent e) {
int row = getSelectedRow(); int row = getSelectedRow();
int col = getSelectedColumn(); int col = getSelectedColumn();
@ -187,7 +189,8 @@ public class SVSheetTable extends JTable {
} }
addHierarchyListener(new HierarchyListener() { addHierarchyListener(new HierarchyListener() {
public void hierarchyChanged(HierarchyEvent e) { @Override
public void hierarchyChanged(HierarchyEvent e) {
if ((e.getChangeFlags() & HierarchyEvent.PARENT_CHANGED) != 0) { if ((e.getChangeFlags() & HierarchyEvent.PARENT_CHANGED) != 0) {
Container changedParent = e.getChangedParent(); Container changedParent = e.getChangedParent();
if (changedParent instanceof JViewport) { if (changedParent instanceof JViewport) {

View File

@ -66,7 +66,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
* *
* @return The cellEditable value * @return The cellEditable value
*/ */
public boolean isCellEditable(java.util.EventObject e) { @Override
public boolean isCellEditable(java.util.EventObject e) {
if (e instanceof MouseEvent) { if (e instanceof MouseEvent) {
return ((MouseEvent) e).getClickCount() >= 2; return ((MouseEvent) e).getClickCount() >= 2;
} }
@ -74,7 +75,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
} }
public boolean shouldSelectCell(EventObject anEvent) { @Override
public boolean shouldSelectCell(EventObject anEvent) {
return true; return true;
} }
@ -85,20 +87,23 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
} }
public boolean stopCellEditing() { @Override
public boolean stopCellEditing() {
System.out.println("Stop Cell Editing"); System.out.println("Stop Cell Editing");
fireEditingStopped(); fireEditingStopped();
return true; return true;
} }
public void cancelCellEditing() { @Override
public void cancelCellEditing() {
System.out.println("Cancel Cell Editing"); System.out.println("Cancel Cell Editing");
fireEditingCanceled(); fireEditingCanceled();
} }
public void actionPerformed(ActionEvent e) { @Override
public void actionPerformed(ActionEvent e) {
System.out.println("Action performed"); System.out.println("Action performed");
stopCellEditing(); stopCellEditing();
} }
@ -109,7 +114,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
* *
* @return The cellEditorValue value * @return The cellEditorValue value
*/ */
public Object getCellEditorValue() { @Override
public Object getCellEditorValue() {
System.out.println("GetCellEditorValue"); System.out.println("GetCellEditorValue");
//JMH Look at when this method is called. Should it return a HSSFCell? //JMH Look at when this method is called. Should it return a HSSFCell?
return editor.getText(); return editor.getText();
@ -121,7 +127,8 @@ public class SVTableCellEditor extends AbstractCellEditor implements TableCellEd
* *
* @return The tableCellEditorComponent value * @return The tableCellEditorComponent value
*/ */
public Component getTableCellEditorComponent(JTable table, Object value, @Override
public Component getTableCellEditorComponent(JTable table, Object value,
boolean isSelected, boolean isSelected,
int row, int row,
int column) { int column) {

View File

@ -137,6 +137,7 @@ public class SVTableCellRenderer extends JLabel
this.wb = wb; this.wb = wb;
} }
@Override
public Component getTableCellRendererComponent(JTable table, Object value, public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) { boolean isSelected, boolean hasFocus, int row, int column) {
boolean isBorderSet = false; boolean isBorderSet = false;
@ -249,14 +250,19 @@ public class SVTableCellRenderer extends JLabel
return this; return this;
} }
@Override
public void validate() {} public void validate() {}
@Override
public void revalidate() {} public void revalidate() {}
@Override
public void repaint(long tm, int x, int y, int width, int height) {} public void repaint(long tm, int x, int y, int width, int height) {}
@Override
public void repaint(Rectangle r) { } public void repaint(Rectangle r) { }
@Override
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) { protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) {
// Strings get interned... // Strings get interned...
if (propertyName=="text") { if (propertyName=="text") {
@ -264,6 +270,7 @@ public class SVTableCellRenderer extends JLabel
} }
} }
@Override
public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { } public void firePropertyChange(String propertyName, boolean oldValue, boolean newValue) { }
/** /**

View File

@ -55,10 +55,12 @@ public class SVTableModel extends AbstractTableModel {
} }
public int getColumnCount() { @Override
public int getColumnCount() {
return this.maxcol+1; return this.maxcol+1;
} }
public Object getValueAt(int row, int col) { @Override
public Object getValueAt(int row, int col) {
HSSFRow r = st.getRow(row); HSSFRow r = st.getRow(row);
HSSFCell c = null; HSSFCell c = null;
if (r != null) { if (r != null) {
@ -66,19 +68,23 @@ public class SVTableModel extends AbstractTableModel {
} }
return c; return c;
} }
public int getRowCount() { @Override
public int getRowCount() {
return st.getLastRowNum() + 1; return st.getLastRowNum() + 1;
} }
public Class<?> getColumnClass(int c) { @Override
public Class<?> getColumnClass(int c) {
return HSSFCell.class; return HSSFCell.class;
} }
public boolean isCellEditable(int rowIndex, int columnIndex) { @Override
public boolean isCellEditable(int rowIndex, int columnIndex) {
return true; return true;
} }
public void setValueAt(Object aValue, int rowIndex, int columnIndex) { @Override
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
if (aValue != null) if (aValue != null)
System.out.println("SVTableModel.setValueAt. value type = "+aValue.getClass().getName()); System.out.println("SVTableModel.setValueAt. value type = "+aValue.getClass().getName());
else System.out.println("SVTableModel.setValueAt. value type = null"); else System.out.println("SVTableModel.setValueAt. value type = null");

View File

@ -54,7 +54,8 @@ public class SViewer extends JApplet {
} }
/**Initialize the applet*/ /**Initialize the applet*/
public void init() { @Override
public void init() {
try { try {
jbInit(); jbInit();
} }
@ -104,20 +105,25 @@ public class SViewer extends JApplet {
} }
/**Start the applet*/ /**Start the applet*/
public void start() { @Override
public void start() {
} }
/**Stop the applet*/ /**Stop the applet*/
public void stop() { @Override
public void stop() {
} }
/**Destroy the applet*/ /**Destroy the applet*/
public void destroy() { @Override
public void destroy() {
} }
/**Get Applet information*/ /**Get Applet information*/
public String getAppletInfo() { @Override
public String getAppletInfo() {
return "Applet Information"; return "Applet Information";
} }
/**Get parameter info*/ /**Get parameter info*/
public String[][] getParameterInfo() { @Override
public String[][] getParameterInfo() {
return null; return null;
} }
@ -149,13 +155,15 @@ public class SViewer extends JApplet {
applet.filename = args[0]; applet.filename = args[0];
Frame frame; Frame frame;
frame = new Frame() { frame = new Frame() {
protected void processWindowEvent(WindowEvent e) { @Override
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e); super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) { if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0); System.exit(0);
} }
} }
public synchronized void setTitle(String title) { @Override
public synchronized void setTitle(String title) {
super.setTitle(title); super.setTitle(title);
enableEvents(AWTEvent.WINDOW_EVENT_MASK); enableEvents(AWTEvent.WINDOW_EVENT_MASK);
} }

View File

@ -129,7 +129,8 @@ public class SViewerPanel extends JPanel {
return scroll; return scroll;
} }
public void paint(Graphics g) { @Override
public void paint(Graphics g) {
//JMH I am only overriding this to get a picture of the time taken to paint //JMH I am only overriding this to get a picture of the time taken to paint
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
super.paint(g); super.paint(g);
@ -180,19 +181,24 @@ public class SViewerPanel extends JPanel {
} }
} }
@Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
checkPopup(e); checkPopup(e);
} }
@Override
public void mousePressed(MouseEvent e) { public void mousePressed(MouseEvent e) {
checkPopup(e); checkPopup(e);
} }
@Override
public void mouseReleased(MouseEvent e) { public void mouseReleased(MouseEvent e) {
checkPopup(e); checkPopup(e);
} }
@Override
public void mouseEntered(MouseEvent e) {} public void mouseEntered(MouseEvent e) {}
@Override
public void mouseExited(MouseEvent e) {} public void mouseExited(MouseEvent e) {}
} }
@ -202,6 +208,7 @@ public class SViewerPanel extends JPanel {
super("Rename"); super("Rename");
} }
@Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
int tabIndex = sheetPane.getSelectedIndex(); int tabIndex = sheetPane.getSelectedIndex();
if (tabIndex != -1) { if (tabIndex != -1) {
@ -220,6 +227,7 @@ public class SViewerPanel extends JPanel {
super("Insert"); super("Insert");
} }
@Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
//Create a new sheet then search for the sheet and make sure that the //Create a new sheet then search for the sheet and make sure that the
//sheetPane shows it. //sheetPane shows it.
@ -239,6 +247,7 @@ public class SViewerPanel extends JPanel {
super("Delete"); super("Delete");
} }
@Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
int tabIndex = sheetPane.getSelectedIndex(); int tabIndex = sheetPane.getSelectedIndex();
if (tabIndex != -1) { if (tabIndex != -1) {
@ -267,12 +276,14 @@ public class SViewerPanel extends JPanel {
SViewerPanel p = new SViewerPanel(wb, true); SViewerPanel p = new SViewerPanel(wb, true);
JFrame frame; JFrame frame;
frame = new JFrame() { frame = new JFrame() {
@Override
protected void processWindowEvent(WindowEvent e) { protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e); super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) { if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0); System.exit(0);
} }
} }
@Override
public synchronized void setTitle(String title) { public synchronized void setTitle(String title) {
super.setTitle(title); super.setTitle(title);
enableEvents(AWTEvent.WINDOW_EVENT_MASK); enableEvents(AWTEvent.WINDOW_EVENT_MASK);

View File

@ -47,6 +47,7 @@ public class DoubleStroke implements Brush {
* *
* @return The created stroke as a new shape. * @return The created stroke as a new shape.
*/ */
@Override
public Shape createStrokedShape(Shape s) { public Shape createStrokedShape(Shape s) {
// Use the first stroke to create an outline of the shape // Use the first stroke to create an outline of the shape
Shape outline = stroke1.createStrokedShape(s); Shape outline = stroke1.createStrokedShape(s);
@ -56,6 +57,7 @@ public class DoubleStroke implements Brush {
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override
public float getLineWidth() { public float getLineWidth() {
return stroke1.getLineWidth() + 2 * stroke2.getLineWidth(); return stroke1.getLineWidth() + 2 * stroke2.getLineWidth();
} }

View File

@ -31,6 +31,7 @@ import org.apache.poi.util.HexDump;
public class DocumentDescriptorRenderer extends DefaultTreeCellRenderer public class DocumentDescriptorRenderer extends DefaultTreeCellRenderer
{ {
@Override
public Component getTreeCellRendererComponent(final JTree tree, public Component getTreeCellRendererComponent(final JTree tree,
final Object value, final Object value,
final boolean selectedCell, final boolean selectedCell,

View File

@ -49,6 +49,7 @@ public class ExtendableTreeCellRenderer implements TreeCellRenderer
renderers = new HashMap<Class<?>,TreeCellRenderer>(); renderers = new HashMap<Class<?>,TreeCellRenderer>();
register(Object.class, new DefaultTreeCellRenderer() register(Object.class, new DefaultTreeCellRenderer()
{ {
@Override
public Component getTreeCellRendererComponent public Component getTreeCellRendererComponent
(JTree tree, Object value, boolean selectedCell, (JTree tree, Object value, boolean selectedCell,
boolean expanded, boolean leaf, int row, boolean hasCellFocus) boolean expanded, boolean leaf, int row, boolean hasCellFocus)
@ -97,6 +98,7 @@ public class ExtendableTreeCellRenderer implements TreeCellRenderer
* *
* @see TreeCellRenderer#getTreeCellRendererComponent * @see TreeCellRenderer#getTreeCellRendererComponent
*/ */
@Override
public Component getTreeCellRendererComponent public Component getTreeCellRendererComponent
(final JTree tree, final Object value, final boolean selected, (final JTree tree, final Object value, final boolean selected,
final boolean expanded, final boolean leaf, final int row, final boolean expanded, final boolean leaf, final int row,

View File

@ -65,6 +65,7 @@ public class POIBrowser extends JFrame
{ {
addWindowListener(new WindowAdapter() addWindowListener(new WindowAdapter()
{ {
@Override
public void windowClosing(WindowEvent e) public void windowClosing(WindowEvent e)
{ {
System.exit(0); System.exit(0);

View File

@ -41,6 +41,7 @@ import org.apache.poi.util.HexDump;
public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer public class PropertySetDescriptorRenderer extends DocumentDescriptorRenderer
{ {
@Override
public Component getTreeCellRendererComponent(final JTree tree, public Component getTreeCellRendererComponent(final JTree tree,
final Object value, final Object value,
final boolean selectedCell, final boolean selectedCell,

View File

@ -121,6 +121,7 @@ public class TreeReaderListener implements POIFSReaderListener
* reading. This method retrieves properties of the document and * reading. This method retrieves properties of the document and
* adds them to a tree model.</p> * adds them to a tree model.</p>
*/ */
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
DocumentDescriptor d; DocumentDescriptor d;

View File

@ -764,6 +764,7 @@ public class ToCSV {
* file ends with either '.xls' or '.xlsx' and false will be * file ends with either '.xls' or '.xlsx' and false will be
* returned in all other instances. * returned in all other instances.
*/ */
@Override
public boolean accept(File file, String name) { public boolean accept(File file, String name) {
return(name.endsWith(".xls") || name.endsWith(".xlsx")); return(name.endsWith(".xls") || name.endsWith(".xlsx"));
} }

View File

@ -33,6 +33,7 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction ;
*/ */
public class CalculateMortgage implements FreeRefFunction { public class CalculateMortgage implements FreeRefFunction {
@Override
public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) { public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) {
// verify that we have enough data // verify that we have enough data

View File

@ -56,6 +56,7 @@ public class SettingExternalFunction {
// don't care about the implementation, we are not interested in evaluation // don't care about the implementation, we are not interested in evaluation
// and this method will never be called // and this method will never be called
FreeRefFunction NA = new FreeRefFunction() { FreeRefFunction NA = new FreeRefFunction() {
@Override
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) { public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {
return ErrorEval.NA; return ErrorEval.NA;
} }
@ -66,6 +67,7 @@ public class SettingExternalFunction {
_functionsByName.put("BDS", NA); _functionsByName.put("BDS", NA);
} }
@Override
public FreeRefFunction findFunction(String name) { public FreeRefFunction findFunction(String name) {
return _functionsByName.get(name.toUpperCase(Locale.ROOT)); return _functionsByName.get(name.toUpperCase(Locale.ROOT));
} }

View File

@ -42,6 +42,7 @@ public class HSSFHtmlHelper implements HtmlHelper {
colors = wb.getCustomPalette(); colors = wb.getCustomPalette();
} }
@Override
public void colorStyles(CellStyle style, Formatter out) { public void colorStyles(CellStyle style, Formatter out) {
HSSFCellStyle cs = (HSSFCellStyle) style; HSSFCellStyle cs = (HSSFCellStyle) style;
out.format(" /* fill pattern = %d */%n", cs.getFillPattern()); out.format(" /* fill pattern = %d */%n", cs.getFillPattern());

View File

@ -28,6 +28,7 @@ import org.apache.poi.xssf.usermodel.XSSFColor;
* @author Ken Arnold, Industrious Media LLC * @author Ken Arnold, Industrious Media LLC
*/ */
public class XSSFHtmlHelper implements HtmlHelper { public class XSSFHtmlHelper implements HtmlHelper {
@Override
public void colorStyles(CellStyle style, Formatter out) { public void colorStyles(CellStyle style, Formatter out) {
XSSFCellStyle cs = (XSSFCellStyle) style; XSSFCellStyle cs = (XSSFCellStyle) style;
styleColor(out, "background-color", cs.getFillForegroundXSSFColor()); styleColor(out, "background-color", cs.getFillForegroundXSSFColor());

View File

@ -83,6 +83,7 @@ public class XLSX2CSV {
} }
} }
@Override
public void startRow(int rowNum) { public void startRow(int rowNum) {
// If there were gaps, output the missing rows // If there were gaps, output the missing rows
outputMissingRows(rowNum-currentRow-1); outputMissingRows(rowNum-currentRow-1);
@ -92,6 +93,7 @@ public class XLSX2CSV {
currentCol = -1; currentCol = -1;
} }
@Override
public void endRow(int rowNum) { public void endRow(int rowNum) {
// Ensure the minimum number of columns // Ensure the minimum number of columns
for (int i=currentCol; i<minColumns; i++) { for (int i=currentCol; i<minColumns; i++) {
@ -100,6 +102,7 @@ public class XLSX2CSV {
output.append('\n'); output.append('\n');
} }
@Override
public void cell(String cellReference, String formattedValue, public void cell(String cellReference, String formattedValue,
XSSFComment comment) { XSSFComment comment) {
if (firstCellOfRow) { if (firstCellOfRow) {
@ -132,6 +135,7 @@ public class XLSX2CSV {
} }
} }
@Override
public void headerFooter(String text, boolean isHeader, String tagName) { public void headerFooter(String text, boolean isHeader, String tagName) {
// Skip, no headers or footers in CSV // Skip, no headers or footers in CSV
} }

View File

@ -116,7 +116,8 @@ public class FromHowTo {
this.sst = sst; this.sst = sst;
} }
public void startElement(String uri, String localName, String name, @Override
public void startElement(String uri, String localName, String name,
Attributes attributes) throws SAXException { Attributes attributes) throws SAXException {
// c => cell // c => cell
if(name.equals("c")) { if(name.equals("c")) {
@ -131,7 +132,8 @@ public class FromHowTo {
lastContents = ""; lastContents = "";
} }
public void endElement(String uri, String localName, String name) @Override
public void endElement(String uri, String localName, String name)
throws SAXException { throws SAXException {
// Process the last contents as required. // Process the last contents as required.
// Do now, as characters() may be called more than once // Do now, as characters() may be called more than once
@ -152,7 +154,8 @@ public class FromHowTo {
} }
} }
public void characters(char[] ch, int start, int length) throws SAXException { // NOSONAR @Override
public void characters(char[] ch, int start, int length) throws SAXException { // NOSONAR
lastContents += new String(ch, start, length); lastContents += new String(ch, start, length);
} }
} }

View File

@ -42,6 +42,7 @@ public class HybridStreaming {
InputStream sourceBytes = new FileInputStream("workbook.xlsx"); InputStream sourceBytes = new FileInputStream("workbook.xlsx");
XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) { XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) {
/** Avoid DOM parse of large sheet */ /** Avoid DOM parse of large sheet */
@Override
public void parseSheet(java.util.Map<String,XSSFSheet> shIdMap, CTSheet ctSheet) { public void parseSheet(java.util.Map<String,XSSFSheet> shIdMap, CTSheet ctSheet) {
if (!SHEET_TO_STREAM.equals(ctSheet.getName())) { if (!SHEET_TO_STREAM.equals(ctSheet.getName())) {
super.parseSheet(shIdMap, ctSheet); super.parseSheet(shIdMap, ctSheet);
@ -59,15 +60,19 @@ public class HybridStreaming {
private static SheetContentsHandler createSheetContentsHandler() { private static SheetContentsHandler createSheetContentsHandler() {
return new SheetContentsHandler() { return new SheetContentsHandler() {
@Override
public void startRow(int rowNum) { public void startRow(int rowNum) {
} }
@Override
public void headerFooter(String text, boolean isHeader, String tagName) { public void headerFooter(String text, boolean isHeader, String tagName) {
} }
@Override
public void endRow(int rowNum) { public void endRow(int rowNum) {
} }
@Override
public void cell(String cellReference, String formattedValue, XSSFComment comment) { public void cell(String cellReference, String formattedValue, XSSFComment comment) {
} }
}; };

View File

@ -102,7 +102,8 @@ public class ExcelAntEvaluateCell extends Task {
return precisionToUse; return precisionToUse;
} }
public void execute() throws BuildException { @Override
public void execute() throws BuildException {
precisionToUse = 0 ; precisionToUse = 0 ;

View File

@ -58,6 +58,7 @@ public class ExcelAntHandlerTask extends Task {
wbUtil = wkbkUtil ; wbUtil = wkbkUtil ;
} }
@Override
public void execute() throws BuildException { public void execute() throws BuildException {
log( "handling the workbook with class " + className, Project.MSG_INFO ) ; log( "handling the workbook with class " + className, Project.MSG_INFO ) ;
try { try {

View File

@ -50,7 +50,8 @@ public class ExcelAntSetDoubleCell extends ExcelAntSet {
return cellValue; return cellValue;
} }
public void execute() throws BuildException { @Override
public void execute() throws BuildException {
wbUtil.setDoubleValue(cellStr, cellValue ) ; wbUtil.setDoubleValue(cellStr, cellValue ) ;
log( "set cell " + cellStr + " to value " + cellValue + " as double.", Project.MSG_DEBUG ) ; log( "set cell " + cellStr + " to value " + cellValue + " as double.", Project.MSG_DEBUG ) ;

View File

@ -43,7 +43,8 @@ public class ExcelAntSetFormulaCell extends ExcelAntSet {
return cellValue; return cellValue;
} }
public void execute() throws BuildException { @Override
public void execute() throws BuildException {
wbUtil.setFormulaValue( cellStr, cellValue ) ; wbUtil.setFormulaValue( cellStr, cellValue ) ;

View File

@ -50,7 +50,8 @@ public class ExcelAntSetStringCell extends ExcelAntSet {
return stringValue; return stringValue;
} }
public void execute() throws BuildException { @Override
public void execute() throws BuildException {
wbUtil.setStringValue(cellStr, stringValue ) ; wbUtil.setStringValue(cellStr, stringValue ) ;
log( "set cell " + cellStr + " to value " + stringValue + " as String.", Project.MSG_DEBUG ) ; log( "set cell " + cellStr + " to value " + stringValue + " as String.", Project.MSG_DEBUG ) ;

View File

@ -78,7 +78,8 @@ public class ExcelAntTask extends Task {
functions.add( def ) ; functions.add( def ) ;
} }
public void execute() throws BuildException { @Override
public void execute() throws BuildException {
checkClassPath(); checkClassPath();
int totalCount = 0 ; int totalCount = 0 ;

View File

@ -124,7 +124,8 @@ public class ExcelAntTest extends Task{
return evaluators; return evaluators;
} }
public void execute() throws BuildException { @Override
public void execute() throws BuildException {
Iterator<Task> taskIt = testTasks.iterator(); Iterator<Task> taskIt = testTasks.iterator();

View File

@ -35,6 +35,7 @@ import org.apache.poi.ss.formula.functions.FreeRefFunction ;
*/ */
public class CalculateMortgageFunction implements FreeRefFunction { public class CalculateMortgageFunction implements FreeRefFunction {
@Override
public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) { public ValueEval evaluate( ValueEval[] args, OperationEvaluationContext ec ) {
// verify that we have enough data // verify that we have enough data

View File

@ -500,6 +500,7 @@ public abstract class BuildFileTest extends TestCase {
this.buffer = buffer; this.buffer = buffer;
} }
@Override
public void write(int b) { public void write(int b) {
buffer.append((char) b); buffer.append((char) b);
} }
@ -522,6 +523,7 @@ public abstract class BuildFileTest extends TestCase {
/** /**
* Fired before any targets are started. * Fired before any targets are started.
*/ */
@Override
public void buildStarted(BuildEvent event) { public void buildStarted(BuildEvent event) {
} }
@ -531,6 +533,7 @@ public abstract class BuildFileTest extends TestCase {
* *
* @see BuildEvent#getException() * @see BuildEvent#getException()
*/ */
@Override
public void buildFinished(BuildEvent event) { public void buildFinished(BuildEvent event) {
} }
@ -539,6 +542,7 @@ public abstract class BuildFileTest extends TestCase {
* *
* @see BuildEvent#getTarget() * @see BuildEvent#getTarget()
*/ */
@Override
public void targetStarted(BuildEvent event) { public void targetStarted(BuildEvent event) {
//System.out.println("targetStarted " + event.getTarget().getName()); //System.out.println("targetStarted " + event.getTarget().getName());
} }
@ -549,6 +553,7 @@ public abstract class BuildFileTest extends TestCase {
* *
* @see BuildEvent#getException() * @see BuildEvent#getException()
*/ */
@Override
public void targetFinished(BuildEvent event) { public void targetFinished(BuildEvent event) {
//System.out.println("targetFinished " + event.getTarget().getName()); //System.out.println("targetFinished " + event.getTarget().getName());
} }
@ -558,6 +563,7 @@ public abstract class BuildFileTest extends TestCase {
* *
* @see BuildEvent#getTask() * @see BuildEvent#getTask()
*/ */
@Override
public void taskStarted(BuildEvent event) { public void taskStarted(BuildEvent event) {
//System.out.println("taskStarted " + event.getTask().getTaskName()); //System.out.println("taskStarted " + event.getTask().getTaskName());
} }
@ -568,6 +574,7 @@ public abstract class BuildFileTest extends TestCase {
* *
* @see BuildEvent#getException() * @see BuildEvent#getException()
*/ */
@Override
public void taskFinished(BuildEvent event) { public void taskFinished(BuildEvent event) {
//System.out.println("taskFinished " + event.getTask().getTaskName()); //System.out.println("taskFinished " + event.getTask().getTaskName());
} }
@ -578,6 +585,7 @@ public abstract class BuildFileTest extends TestCase {
* @see BuildEvent#getMessage() * @see BuildEvent#getMessage()
* @see BuildEvent#getPriority() * @see BuildEvent#getPriority()
*/ */
@Override
public void messageLogged(BuildEvent event) { public void messageLogged(BuildEvent event) {
if (event.getPriority() > logLevel) { if (event.getPriority() > logLevel) {
// ignore event // ignore event

View File

@ -26,10 +26,12 @@ public class MockExcelAntWorkbookHandler implements IExcelAntWorkbookHandler {
public static Workbook workbook = null; public static Workbook workbook = null;
@Override
public void setWorkbook(Workbook workbook) { public void setWorkbook(Workbook workbook) {
MockExcelAntWorkbookHandler.workbook = workbook; MockExcelAntWorkbookHandler.workbook = workbook;
} }
@Override
public void execute() { public void execute() {
executed = true; executed = true;
assertNotNull(workbook); assertNotNull(workbook);

View File

@ -53,6 +53,7 @@ public abstract class AbstractFileHandler implements FileHandler {
EXPECTED_EXTRACTOR_FAILURES.add("poifs/Notes.ole2"); EXPECTED_EXTRACTOR_FAILURES.add("poifs/Notes.ole2");
} }
@Override
public void handleExtracting(File file) throws Exception { public void handleExtracting(File file) throws Exception {
boolean before = ExtractorFactory.getThreadPrefersEventExtractors(); boolean before = ExtractorFactory.getThreadPrefersEventExtractors();
try { try {

View File

@ -51,7 +51,8 @@ public class HDGFFileHandler extends POIFSFileHandler {
} }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
File file = new File("test-data/diagram/44501.vsd"); File file = new File("test-data/diagram/44501.vsd");

View File

@ -39,7 +39,8 @@ public class HPBFFileHandler extends POIFSFileHandler {
} }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
File file = new File("test-data/publisher/SampleBrochure.pub"); File file = new File("test-data/publisher/SampleBrochure.pub");

View File

@ -37,7 +37,8 @@ public class HPSFFileHandler extends POIFSFileHandler {
} }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
InputStream stream = new FileInputStream("test-data/hpsf/Test0313rur.adm"); InputStream stream = new FileInputStream("test-data/hpsf/Test0313rur.adm");
try { try {

View File

@ -49,7 +49,8 @@ public class HSLFFileHandler extends SlideShowHandler {
} }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
InputStream stream = new FileInputStream("test-data/hpsf/Test_Humor-Generation.ppt"); InputStream stream = new FileInputStream("test-data/hpsf/Test_Humor-Generation.ppt");
try { try {

View File

@ -72,7 +72,8 @@ public class HSMFFileHandler extends POIFSFileHandler {
// } // }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
InputStream stream = new FileInputStream("test-data/hsmf/example_received_regular.msg"); InputStream stream = new FileInputStream("test-data/hsmf/example_received_regular.msg");
try { try {

View File

@ -38,7 +38,8 @@ public class HWPFFileHandler extends POIFSFileHandler {
} }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
File file = new File("test-data/document/52117.doc"); File file = new File("test-data/document/52117.doc");

View File

@ -55,6 +55,7 @@ public class OPCFileHandler extends AbstractFileHandler {
} }
} }
@Override
public void handleExtracting(File file) throws Exception { public void handleExtracting(File file) throws Exception {
// text-extraction is not possible currenlty for these types of files // text-extraction is not possible currenlty for these types of files
} }

View File

@ -46,7 +46,8 @@ public class XSLFFileHandler extends SlideShowHandler {
slide.close(); slide.close();
} }
public void handleExtracting(File file) throws Exception { @Override
public void handleExtracting(File file) throws Exception {
super.handleExtracting(file); super.handleExtracting(file);
@ -65,7 +66,8 @@ public class XSLFFileHandler extends SlideShowHandler {
} }
// a test-case to test this locally without executing the full TestAllFiles // a test-case to test this locally without executing the full TestAllFiles
@Test @Override
@Test
public void test() throws Exception { public void test() throws Exception {
InputStream stream = new FileInputStream("test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx"); InputStream stream = new FileInputStream("test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx");
try { try {

View File

@ -203,39 +203,71 @@ public class XSSFFileHandler extends SpreadsheetHandler {
@SuppressWarnings("resource") @SuppressWarnings("resource")
NullPrintStream() { NullPrintStream() {
super(new OutputStream() { super(new OutputStream() {
@Override
public void write(int b) {} public void write(int b) {}
@Override
public void write(byte[] b) {} public void write(byte[] b) {}
@Override
public void write(byte[] b, int off, int len) {} public void write(byte[] b, int off, int len) {}
}); });
} }
@Override
public void write(int b) {} public void write(int b) {}
@Override
public void write(byte[] buf, int off, int len) {} public void write(byte[] buf, int off, int len) {}
@Override
public void print(boolean b) {} public void print(boolean b) {}
@Override
public void print(char c) {} public void print(char c) {}
@Override
public void print(int i) {} public void print(int i) {}
@Override
public void print(long l) {} public void print(long l) {}
@Override
public void print(float f) {} public void print(float f) {}
@Override
public void print(double d) {} public void print(double d) {}
@Override
public void print(char[] s) {} public void print(char[] s) {}
@Override
public void print(String s) {} public void print(String s) {}
@Override
public void print(Object obj) {} public void print(Object obj) {}
@Override
public void println() {} public void println() {}
@Override
public void println(boolean x) {} public void println(boolean x) {}
@Override
public void println(char x) {} public void println(char x) {}
@Override
public void println(int x) {} public void println(int x) {}
@Override
public void println(long x) {} public void println(long x) {}
@Override
public void println(float x) {} public void println(float x) {}
@Override
public void println(double x) {} public void println(double x) {}
@Override
public void println(char[] x) {} public void println(char[] x) {}
@Override
public void println(String x) {} public void println(String x) {}
@Override
public void println(Object x) {} public void println(Object x) {}
@Override
public PrintStream printf(String format, Object... args) { return this; } public PrintStream printf(String format, Object... args) { return this; }
@Override
public PrintStream printf(Locale l, String format, Object... args) { return this; } public PrintStream printf(Locale l, String format, Object... args) { return this; }
@Override
public PrintStream format(String format, Object... args) { return this; } public PrintStream format(String format, Object... args) { return this; }
@Override
public PrintStream format(Locale l, String format, Object... args) { return this; } public PrintStream format(Locale l, String format, Object... args) { return this; }
@Override
public PrintStream append(CharSequence csq) { return this; } public PrintStream append(CharSequence csq) { return this; }
@Override
public PrintStream append(CharSequence csq, int start, int end) { return this; } public PrintStream append(CharSequence csq, int start, int end) { return this; }
@Override
public PrintStream append(char c) { return this; } public PrintStream append(char c) { return this; }
@Override
public void write(byte[] b) {} public void write(byte[] b) {}
} }
} }

View File

@ -79,6 +79,7 @@ public final class TestPOIXMLDocument {
// //
} }
@Override
protected POIXMLRelation getDescriptor(String relationshipType) { protected POIXMLRelation getDescriptor(String relationshipType) {
return null; return null;
} }

View File

@ -57,10 +57,12 @@ public class AesZipFileZipEntrySource implements ZipEntrySource {
* Note: the file sizes are rounded up to the next cipher block size, * Note: the file sizes are rounded up to the next cipher block size,
* so don't rely on file sizes of these custom encrypted zip file entries! * so don't rely on file sizes of these custom encrypted zip file entries!
*/ */
@Override
public Enumeration<? extends ZipEntry> getEntries() { public Enumeration<? extends ZipEntry> getEntries() {
return zipFile.entries(); return zipFile.entries();
} }
@Override
@SuppressWarnings("resource") @SuppressWarnings("resource")
public InputStream getInputStream(ZipEntry entry) throws IOException { public InputStream getInputStream(ZipEntry entry) throws IOException {
InputStream is = zipFile.getInputStream(entry); InputStream is = zipFile.getInputStream(entry);
@ -113,6 +115,7 @@ public class AesZipFileZipEntrySource implements ZipEntrySource {
zos.putNextEntry(zeNew); zos.putNextEntry(zeNew);
FilterOutputStream fos2 = new FilterOutputStream(zos){ FilterOutputStream fos2 = new FilterOutputStream(zos){
// don't close underlying ZipOutputStream // don't close underlying ZipOutputStream
@Override
public void close() {} public void close() {}
}; };
CipherOutputStream cos = new CipherOutputStream(fos2, ciEnc); CipherOutputStream cos = new CipherOutputStream(fos2, ciEnc);

View File

@ -57,6 +57,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
@Test @Test
public void testGeneralFormat() throws Exception { public void testGeneralFormat() throws Exception {
runFormatTests("GeneralFormatTests.xlsx", new CellValue() { runFormatTests("GeneralFormatTests.xlsx", new CellValue() {
@Override
public Object getValue(Cell cell) { public Object getValue(Cell cell) {
switch (CellFormat.ultimateTypeEnum(cell)) { switch (CellFormat.ultimateTypeEnum(cell)) {
case BOOLEAN: case BOOLEAN:
@ -72,6 +73,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
public void testNumberFormat() throws Exception { public void testNumberFormat() throws Exception {
runFormatTests("NumberFormatTests.xlsx", new CellValue() { runFormatTests("NumberFormatTests.xlsx", new CellValue() {
@Override
public Object getValue(Cell cell) { public Object getValue(Cell cell) {
return cell.getNumericCellValue(); return cell.getNumericCellValue();
} }
@ -81,6 +83,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
@Test @Test
public void testNumberApproxFormat() throws Exception { public void testNumberApproxFormat() throws Exception {
runFormatTests("NumberFormatApproxTests.xlsx", new CellValue() { runFormatTests("NumberFormatApproxTests.xlsx", new CellValue() {
@Override
public Object getValue(Cell cell) { public Object getValue(Cell cell) {
return cell.getNumericCellValue(); return cell.getNumericCellValue();
} }
@ -104,6 +107,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
LocaleUtil.setUserTimeZone(TimeZone.getTimeZone("CET")); LocaleUtil.setUserTimeZone(TimeZone.getTimeZone("CET"));
try { try {
runFormatTests("DateFormatTests.xlsx", new CellValue() { runFormatTests("DateFormatTests.xlsx", new CellValue() {
@Override
public Object getValue(Cell cell) { public Object getValue(Cell cell) {
return cell.getDateCellValue(); return cell.getDateCellValue();
} }
@ -116,6 +120,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
@Test @Test
public void testElapsedFormat() throws Exception { public void testElapsedFormat() throws Exception {
runFormatTests("ElapsedFormatTests.xlsx", new CellValue() { runFormatTests("ElapsedFormatTests.xlsx", new CellValue() {
@Override
public Object getValue(Cell cell) { public Object getValue(Cell cell) {
return cell.getNumericCellValue(); return cell.getNumericCellValue();
} }
@ -125,6 +130,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
@Test @Test
public void testTextFormat() throws Exception { public void testTextFormat() throws Exception {
runFormatTests("TextFormatTests.xlsx", new CellValue() { runFormatTests("TextFormatTests.xlsx", new CellValue() {
@Override
public Object getValue(Cell cell) { public Object getValue(Cell cell) {
switch(CellFormat.ultimateTypeEnum(cell)) { switch(CellFormat.ultimateTypeEnum(cell)) {
case BOOLEAN: case BOOLEAN:
@ -139,6 +145,7 @@ public class TestCellFormatPart extends CellFormatTestBase {
@Test @Test
public void testConditions() throws Exception { public void testConditions() throws Exception {
runFormatTests("FormatConditionTests.xlsx", new CellValue() { runFormatTests("FormatConditionTests.xlsx", new CellValue() {
@Override
Object getValue(Cell cell) { Object getValue(Cell cell) {
return cell.getNumericCellValue(); return cell.getNumericCellValue();
} }

View File

@ -30,6 +30,7 @@ public class TestXDGFVisioExtractor extends TestCase {
private OPCPackage pkg; private OPCPackage pkg;
private XmlVisioDocument xml; private XmlVisioDocument xml;
@Override
protected void setUp() throws Exception { protected void setUp() throws Exception {
diagrams = POIDataSamples.getDiagramInstance(); diagrams = POIDataSamples.getDiagramInstance();

View File

@ -48,10 +48,12 @@ public class TestXSLFTextParagraph {
super(p); super(p);
} }
@Override
public void breakText(Graphics2D graphics) { public void breakText(Graphics2D graphics) {
super.breakText(graphics); super.breakText(graphics);
} }
@Override
public double getWrappingWidth(boolean firstLine, Graphics2D graphics) { public double getWrappingWidth(boolean firstLine, Graphics2D graphics) {
return super.getWrappingWidth(firstLine, graphics); return super.getWrappingWidth(firstLine, graphics);
} }

View File

@ -95,6 +95,7 @@ public final class TestSXSSFSheet extends BaseTestXSheet {
super.bug35084(); super.bug35084();
} }
@Override
@Test @Test
public void getCellComment() throws IOException { public void getCellComment() throws IOException {
// TODO: reading cell comments via Sheet does not work currently as it tries // TODO: reading cell comments via Sheet does not work currently as it tries

View File

@ -36,6 +36,7 @@ public class TestXSSFConditionalFormatting extends BaseTestConditionalFormatting
super(XSSFITestDataProvider.instance); super(XSSFITestDataProvider.instance);
} }
@Override
protected void assertColour(String hexExpected, Color actual) { protected void assertColour(String hexExpected, Color actual) {
assertNotNull("Colour must be given", actual); assertNotNull("Colour must be given", actual);
XSSFColor colour = (XSSFColor)actual; XSSFColor colour = (XSSFColor)actual;

View File

@ -42,7 +42,8 @@ public final class TestXSSFDataFormat extends BaseTestDataFormat {
/** /**
* [Bug 49928] formatCellValue returns incorrect value for \u00a3 formatted cells * [Bug 49928] formatCellValue returns incorrect value for \u00a3 formatted cells
*/ */
@Test @Override
@Test
public void test49928() throws IOException { public void test49928() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("49928.xlsx"); XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("49928.xlsx");
doTest49928Core(wb); doTest49928Core(wb);
@ -68,7 +69,8 @@ public final class TestXSSFDataFormat extends BaseTestDataFormat {
/** /**
* [Bug 58532] Handle formats that go numnum, numK, numM etc * [Bug 58532] Handle formats that go numnum, numK, numM etc
*/ */
@Test @Override
@Test
public void test58532() throws IOException { public void test58532() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("FormatKM.xlsx"); XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("FormatKM.xlsx");
doTest58532Core(wb); doTest58532Core(wb);

View File

@ -22,6 +22,7 @@ import org.apache.poi.ss.usermodel.Workbook;
public class TestXSSFForkedEvaluator extends TestForkedEvaluator { public class TestXSSFForkedEvaluator extends TestForkedEvaluator {
@Override
protected Workbook newWorkbook() { protected Workbook newWorkbook() {
return new XSSFWorkbook(); return new XSSFWorkbook();
} }

View File

@ -33,6 +33,7 @@ public class TestXWPFDecorators extends TestCase {
private XWPFDocument hyperlink; private XWPFDocument hyperlink;
private XWPFDocument comments; private XWPFDocument comments;
@Override
protected void setUp() throws IOException { protected void setUp() throws IOException {
simple = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx"); simple = XWPFTestDataSamples.openSampleDocument("SampleDoc.docx");
hyperlink = XWPFTestDataSamples.openSampleDocument("TestDocument.docx"); hyperlink = XWPFTestDataSamples.openSampleDocument("TestDocument.docx");

View File

@ -37,6 +37,7 @@ public class TestXWPFHeaderFooterPolicy extends TestCase {
private XWPFDocument oddEven; private XWPFDocument oddEven;
private XWPFDocument diffFirst; private XWPFDocument diffFirst;
@Override
protected void setUp() throws IOException { protected void setUp() throws IOException {
noHeader = XWPFTestDataSamples.openSampleDocument("NoHeadFoot.docx"); noHeader = XWPFTestDataSamples.openSampleDocument("NoHeadFoot.docx");
header = XWPFTestDataSamples.openSampleDocument("ThreeColHead.docx"); header = XWPFTestDataSamples.openSampleDocument("ThreeColHead.docx");

View File

@ -37,6 +37,7 @@ import org.openxmlformats.schemas.wordprocessingml.x2006.main.STBorder;
* Tests for XWPF Tables * Tests for XWPF Tables
*/ */
public class TestXWPFTable extends TestCase { public class TestXWPFTable extends TestCase {
@Override
protected void setUp() { protected void setUp() {
/* /*
XWPFDocument doc = new XWPFDocument(); XWPFDocument doc = new XWPFDocument();

View File

@ -47,7 +47,8 @@ public final class TestPOIDocumentScratchpad extends TestCase {
* Set things up, using a PowerPoint document and * Set things up, using a PowerPoint document and
* a Word Document for our testing * a Word Document for our testing
*/ */
public void setUp() throws Exception { @Override
public void setUp() throws Exception {
doc = new HSLFSlideShowImpl(POIDataSamples.getSlideShowInstance().openResourceAsStream("basic_test_ppt_file.ppt")); doc = new HSLFSlideShowImpl(POIDataSamples.getSlideShowInstance().openResourceAsStream("basic_test_ppt_file.ppt"));
doc2 = HWPFTestDataSamples.openSampleFile("test2.doc"); doc2 = HWPFTestDataSamples.openSampleFile("test2.doc");

View File

@ -30,7 +30,8 @@ public final class TestHDGFCore extends TestCase {
private POIFSFileSystem fs; private POIFSFileSystem fs;
protected void setUp() throws Exception { @Override
protected void setUp() throws Exception {
fs = new POIFSFileSystem(_dgTests.openResourceAsStream("Test_Visio-Some_Random_Text.vsd")); fs = new POIFSFileSystem(_dgTests.openResourceAsStream("Test_Visio-Some_Random_Text.vsd"));
} }

View File

@ -31,7 +31,8 @@ public final class TestVisioExtractor extends TestCase {
private String defFilename; private String defFilename;
private int defTextChunks; private int defTextChunks;
protected void setUp() { @Override
protected void setUp() {
defFilename = "Test_Visio-Some_Random_Text.vsd"; defFilename = "Test_Visio-Some_Random_Text.vsd";
defTextChunks = 5; defTextChunks = 5;
} }

View File

@ -33,10 +33,15 @@ public abstract class StreamTest extends TestCase {
this.format = format; this.format = format;
} }
public boolean destinationCompressed() { return compressed; } @Override
public boolean destinationHasChunks() { return false; } public boolean destinationCompressed() { return compressed; }
public boolean destinationHasPointers() { return hasPointers; } @Override
public boolean destinationHasStrings() { return false; } public boolean destinationHasChunks() { return false; }
public int getSizeInBytes() { return -1; } @Override
public boolean destinationHasPointers() { return hasPointers; }
@Override
public boolean destinationHasStrings() { return false; }
@Override
public int getSizeInBytes() { return -1; }
} }
} }

View File

@ -36,7 +36,8 @@ public final class TestStreamBugs extends StreamTest {
private PointerFactory ptrFactory; private PointerFactory ptrFactory;
private POIFSFileSystem filesystem; private POIFSFileSystem filesystem;
protected void setUp() throws Exception { @Override
protected void setUp() throws Exception {
ptrFactory = new PointerFactory(11); ptrFactory = new PointerFactory(11);
chunkFactory = new ChunkFactory(11); chunkFactory = new ChunkFactory(11);

View File

@ -34,7 +34,8 @@ public final class TestStreamComplex extends StreamTest {
private ChunkFactory chunkFactory; private ChunkFactory chunkFactory;
private PointerFactory ptrFactory; private PointerFactory ptrFactory;
protected void setUp() throws Exception { @Override
protected void setUp() throws Exception {
ptrFactory = new PointerFactory(11); ptrFactory = new PointerFactory(11);
chunkFactory = new ChunkFactory(11); chunkFactory = new ChunkFactory(11);

View File

@ -44,7 +44,8 @@ public final class TestMAPIAttributes extends TestCase {
} }
protected void tearDown() throws Exception { @Override
protected void tearDown() throws Exception {
stream.close(); stream.close();
super.tearDown(); super.tearDown();

View File

@ -144,6 +144,7 @@ public final class TestRecordContainer extends TestCase {
assertEquals(ch.length-1, recordContainer.getChildRecords().length); assertEquals(ch.length-1, recordContainer.getChildRecords().length);
} }
@Override
protected void setUp() throws Exception { protected void setUp() throws Exception {
super.setUp(); super.setUp();

View File

@ -38,6 +38,7 @@ import org.apache.poi.hslf.usermodel.HSLFSlideShow;
public final class TestTxMasterStyleAtom extends TestCase { public final class TestTxMasterStyleAtom extends TestCase {
protected HSLFSlideShow _ppt; protected HSLFSlideShow _ppt;
@Override
public void setUp() { public void setUp() {
_ppt = new HSLFSlideShow(); _ppt = new HSLFSlideShow();
} }

View File

@ -48,7 +48,8 @@ public final class TestAddingSlides extends TestCase {
/** /**
* Create/open the slideshows * Create/open the slideshows
*/ */
public void setUp() throws Exception { @Override
public void setUp() throws Exception {
hss_empty = HSLFSlideShowImpl.create(); hss_empty = HSLFSlideShowImpl.create();
ss_empty = new HSLFSlideShow(hss_empty); ss_empty = new HSLFSlideShow(hss_empty);

View File

@ -863,11 +863,13 @@ public final class TestBugs {
assertEquals(hlRun.getEndIndex(), hlShape.getEndIndex()); assertEquals(hlRun.getEndIndex(), hlShape.getEndIndex());
OutputStream nullOutput = new OutputStream(){ OutputStream nullOutput = new OutputStream(){
@Override
public void write(int b) throws IOException {} public void write(int b) throws IOException {}
}; };
final boolean found[] = { false }; final boolean found[] = { false };
DummyGraphics2d dgfx = new DummyGraphics2d(new PrintStream(nullOutput)){ DummyGraphics2d dgfx = new DummyGraphics2d(new PrintStream(nullOutput)){
@Override
public void drawString(AttributedCharacterIterator iterator, float x, float y) { public void drawString(AttributedCharacterIterator iterator, float x, float y) {
// For the test file, common sl draws textruns one by one and not mixed // For the test file, common sl draws textruns one by one and not mixed
// so we evaluate the whole iterator // so we evaluate the whole iterator

View File

@ -55,6 +55,7 @@ public class TestExcelConverterSuite
"../spreadsheet" ); "../spreadsheet" );
for ( final File child : directory.listFiles( new FilenameFilter() for ( final File child : directory.listFiles( new FilenameFilter()
{ {
@Override
public boolean accept( File dir, String name ) public boolean accept( File dir, String name )
{ {
return name.endsWith( ".xls" ) && !failingFiles.contains( name ); return name.endsWith( ".xls" ) && !failingFiles.contains( name );

View File

@ -105,6 +105,7 @@ public class TestHwmfParsing {
while ((ze = zis.getNextEntry()) != null) { while ((ze = zis.getNextEntry()) != null) {
String basename = ze.getName().replaceAll(".*?([^/]+)\\.wmf", "$1"); String basename = ze.getName().replaceAll(".*?([^/]+)\\.wmf", "$1");
FilterInputStream fis = new FilterInputStream(zis){ FilterInputStream fis = new FilterInputStream(zis){
@Override
public void close() throws IOException {} public void close() throws IOException {}
}; };
try { try {
@ -138,6 +139,7 @@ public class TestHwmfParsing {
final String startFile = ""; final String startFile = "";
File files[] = indir.listFiles(new FileFilter() { File files[] = indir.listFiles(new FileFilter() {
boolean foundStartFile = false; boolean foundStartFile = false;
@Override
public boolean accept(File pathname) { public boolean accept(File pathname) {
foundStartFile |= startFile.isEmpty() || pathname.getName().contains(startFile); foundStartFile |= startFile.isEmpty() || pathname.getName().contains(startFile);
return foundStartFile && pathname.getName().matches("(?i).*\\.wmf?$"); return foundStartFile && pathname.getName().matches("(?i).*\\.wmf?$");

View File

@ -29,7 +29,8 @@ public abstract class HWPFTestCase extends TestCase {
protected HWPFTestCase() { protected HWPFTestCase() {
} }
protected void setUp() throws Exception { @Override
protected void setUp() throws Exception {
super.setUp(); super.setUp();
/** @todo verify the constructors */ /** @todo verify the constructors */
_hWPFDocFixture = new HWPFDocFixture(this, getTestFile()); _hWPFDocFixture = new HWPFDocFixture(this, getTestFile());
@ -42,7 +43,8 @@ public abstract class HWPFTestCase extends TestCase {
return HWPFDocFixture.DEFAULT_TEST_FILE; return HWPFDocFixture.DEFAULT_TEST_FILE;
} }
protected void tearDown() throws Exception { @Override
protected void tearDown() throws Exception {
if (_hWPFDocFixture != null) { if (_hWPFDocFixture != null) {
_hWPFDocFixture.tearDown(); _hWPFDocFixture.tearDown();
} }

View File

@ -68,6 +68,7 @@ public class TestFieldsTables extends HWPFTestCase
{ {
} }
@Override
protected String getTestFile() protected String getTestFile()
{ {
return "test-fields.doc"; return "test-fields.doc";

View File

@ -44,7 +44,8 @@ public final class TestHWPFPictures extends TestCase {
private String imgCFile; private String imgCFile;
private String imgDFile; private String imgDFile;
protected void setUp() { @Override
protected void setUp() {
docAFile = "testPictures.doc"; docAFile = "testPictures.doc";
docBFile = "two_images.doc"; docBFile = "two_images.doc";

View File

@ -93,7 +93,8 @@ public final class TestHWPFRangeParts extends TestCase {
*/ */
private HWPFDocument docUnicode; private HWPFDocument docUnicode;
public void setUp() { @Override
public void setUp() {
docUnicode = HWPFTestDataSamples.openSampleFile("HeaderFooterUnicode.doc"); docUnicode = HWPFTestDataSamples.openSampleFile("HeaderFooterUnicode.doc");
docAscii = HWPFTestDataSamples.openSampleFile("ThreeColHeadFoot.doc"); docAscii = HWPFTestDataSamples.openSampleFile("ThreeColHeadFoot.doc");
} }

View File

@ -54,6 +54,7 @@ public class TestWordToConverterSuite
"../document" ); "../document" );
for ( final File child : directory.listFiles( new FilenameFilter() for ( final File child : directory.listFiles( new FilenameFilter()
{ {
@Override
public boolean accept( File dir, String name ) public boolean accept( File dir, String name )
{ {
return name.endsWith( ".doc" ) && !failingFiles.contains( name ); return name.endsWith( ".doc" ) && !failingFiles.contains( name );

View File

@ -59,6 +59,7 @@ public class TestWordToHtmlConverter
{ {
wordToHtmlConverter.setPicturesManager( new PicturesManager() wordToHtmlConverter.setPicturesManager( new PicturesManager()
{ {
@Override
public String savePicture( byte[] content, public String savePicture( byte[] content,
PictureType pictureType, String suggestedName, PictureType pictureType, String suggestedName,
float widthInches, float heightInches ) float widthInches, float heightInches )

View File

@ -49,7 +49,8 @@ public final class TestDifferentRoutes extends TestCase {
private HWPFDocument doc; private HWPFDocument doc;
protected void setUp() { @Override
protected void setUp() {
doc = HWPFTestDataSamples.openSampleFile("test2.doc"); doc = HWPFTestDataSamples.openSampleFile("test2.doc");
} }

View File

@ -80,7 +80,8 @@ public final class TestWordExtractor extends TestCase {
// With footnote // With footnote
private String filename6; private String filename6;
protected void setUp() throws Exception { @Override
protected void setUp() throws Exception {
String filename = "test2.doc"; String filename = "test2.doc";
String filename2 = "test.doc"; String filename2 = "test.doc";

View File

@ -73,7 +73,8 @@ public final class TestCHPBinTable
} }
} }
protected void setUp() @Override
protected void setUp()
throws Exception throws Exception
{ {
super.setUp(); super.setUp();
@ -82,7 +83,8 @@ public final class TestCHPBinTable
_hWPFDocFixture.setUp(); _hWPFDocFixture.setUp();
} }
protected void tearDown() @Override
protected void tearDown()
throws Exception throws Exception
{ {
_cHPBinTable = null; _cHPBinTable = null;

View File

@ -53,7 +53,8 @@ public final class TestFontTable
} }
protected void setUp() @Override
protected void setUp()
throws Exception throws Exception
{ {
super.setUp(); super.setUp();
@ -63,7 +64,8 @@ public final class TestFontTable
_hWPFDocFixture.setUp(); _hWPFDocFixture.setUp();
} }
protected void tearDown() @Override
protected void tearDown()
throws Exception throws Exception
{ {
_hWPFDocFixture.tearDown(); _hWPFDocFixture.tearDown();

View File

@ -56,7 +56,8 @@ public final class TestPlexOfCps
assertEquals(node.getEnd()-node.getStart(), span); assertEquals(node.getEnd()-node.getStart(), span);
} }
} }
protected void setUp() @Override
protected void setUp()
throws Exception throws Exception
{ {
super.setUp(); super.setUp();
@ -66,7 +67,8 @@ public final class TestPlexOfCps
_hWPFDocFixture.setUp(); _hWPFDocFixture.setUp();
} }
protected void tearDown() @Override
protected void tearDown()
throws Exception throws Exception
{ {
_plexOfCps = null; _plexOfCps = null;

View File

@ -85,7 +85,8 @@ public final class TestSectionTable
} }
} }
protected void setUp() @Override
protected void setUp()
throws Exception throws Exception
{ {
super.setUp(); super.setUp();
@ -95,7 +96,8 @@ public final class TestSectionTable
_hWPFDocFixture.setUp(); _hWPFDocFixture.setUp();
} }
protected void tearDown() @Override
protected void tearDown()
throws Exception throws Exception
{ {
_hWPFDocFixture.tearDown(); _hWPFDocFixture.tearDown();

View File

@ -61,7 +61,8 @@ public final class TestStyleSheet
assertEquals(newStyleSheet, _styleSheet); assertEquals(newStyleSheet, _styleSheet);
} }
protected void setUp() @Override
protected void setUp()
throws Exception throws Exception
{ {
super.setUp(); super.setUp();
@ -76,7 +77,8 @@ public final class TestStyleSheet
_styleSheet = new StyleSheet(tableStream, fib.getFcStshf()); _styleSheet = new StyleSheet(tableStream, fib.getFcStshf());
} }
protected void tearDown() @Override
protected void tearDown()
throws Exception throws Exception
{ {
_styleSheet = null; _styleSheet = null;

View File

@ -35,7 +35,8 @@ public final class TestHeaderStories extends TestCase {
private HWPFDocument unicode; private HWPFDocument unicode;
private HWPFDocument withFields; private HWPFDocument withFields;
protected void setUp() { @Override
protected void setUp() {
none = HWPFTestDataSamples.openSampleFile("NoHeadFoot.doc"); none = HWPFTestDataSamples.openSampleFile("NoHeadFoot.doc");
header = HWPFTestDataSamples.openSampleFile("ThreeColHead.doc"); header = HWPFTestDataSamples.openSampleFile("ThreeColHead.doc");

View File

@ -46,7 +46,8 @@ public final class TestRangeDelete extends TestCase {
private String illustrativeDocFile; private String illustrativeDocFile;
protected void setUp() { @Override
protected void setUp() {
illustrativeDocFile = "testRangeDelete.doc"; illustrativeDocFile = "testRangeDelete.doc";
} }

View File

@ -38,7 +38,8 @@ public final class TestRangeInsertion extends TestCase {
private String illustrativeDocFile; private String illustrativeDocFile;
protected void setUp() { @Override
protected void setUp() {
illustrativeDocFile = "testRangeInsertion.doc"; illustrativeDocFile = "testRangeInsertion.doc";
} }

View File

@ -64,6 +64,7 @@ public final class TestRangeProperties extends TestCase {
private HWPFDocument u; private HWPFDocument u;
private HWPFDocument a; private HWPFDocument a;
@Override
protected void setUp() { protected void setUp() {
u = HWPFTestDataSamples.openSampleFile("HeaderFooterUnicode.doc"); u = HWPFTestDataSamples.openSampleFile("HeaderFooterUnicode.doc");
a = HWPFTestDataSamples.openSampleFile("SampleDoc.doc"); a = HWPFTestDataSamples.openSampleFile("SampleDoc.doc");

View File

@ -138,10 +138,14 @@ public final class TestEscherContainerRecord extends TestCase {
private static final class DummyEscherRecord extends EscherRecord { private static final class DummyEscherRecord extends EscherRecord {
public DummyEscherRecord() { } public DummyEscherRecord() { }
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { return 0; } @Override
public int serialize(int offset, byte[] data, EscherSerializationListener listener) { return 0; } public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { return 0; }
public int getRecordSize() { return 10; } @Override
public String getRecordName() { return ""; } public int serialize(int offset, byte[] data, EscherSerializationListener listener) { return 0; }
@Override
public int getRecordSize() { return 10; }
@Override
public String getRecordName() { return ""; }
} }
public void testGetRecordSize() { public void testGetRecordSize() {

View File

@ -57,6 +57,7 @@ public class AllDataFilesTester {
final File dataDir = _samples.getFile(""); final File dataDir = _samples.getFile("");
final File[] docs = dataDir.listFiles(new FileFilter() final File[] docs = dataDir.listFiles(new FileFilter()
{ {
@Override
public boolean accept(final File file) public boolean accept(final File file)
{ {
return file.isFile() && file.getName().startsWith("Test"); return file.isFile() && file.getName().startsWith("Test");

View File

@ -64,6 +64,7 @@ public final class TestEmptyProperties extends TestCase {
* does not exist * does not exist
* @exception IOException if an I/O exception occurs * @exception IOException if an I/O exception occurs
*/ */
@Override
public void setUp() throws FileNotFoundException, IOException public void setUp() throws FileNotFoundException, IOException
{ {
POIDataSamples samples = POIDataSamples.getHPSFInstance(); POIDataSamples samples = POIDataSamples.getHPSFInstance();

View File

@ -52,7 +52,8 @@ public final class TestMetaDataIPI extends TestCase{
* Setup is used to get the document ready. Gets the DocumentSummaryInformation and the * Setup is used to get the document ready. Gets the DocumentSummaryInformation and the
* SummaryInformation to reasonable values * SummaryInformation to reasonable values
*/ */
public void setUp() throws Exception { @Override
public void setUp() throws Exception {
bout = new ByteArrayOutputStream(); bout = new ByteArrayOutputStream();
poifs = new POIFSFileSystem(); poifs = new POIFSFileSystem();
dir = poifs.getRoot(); dir = poifs.getRoot();

View File

@ -54,6 +54,7 @@ public class TestUnicode extends TestCase {
* @exception FileNotFoundException if the file to be read does not exist. * @exception FileNotFoundException if the file to be read does not exist.
* @exception IOException if any other I/O exception occurs * @exception IOException if any other I/O exception occurs
*/ */
@Override
protected void setUp() { protected void setUp() {
POIDataSamples samples = POIDataSamples.getHPSFInstance(); POIDataSamples samples = POIDataSamples.getHPSFInstance();
data = samples.getFile(POI_FS); data = samples.getFile(POI_FS);

View File

@ -236,6 +236,7 @@ public class TestWrite
final POIFSReader r = new POIFSReader(); final POIFSReader r = new POIFSReader();
r.registerListener(new POIFSReaderListener() r.registerListener(new POIFSReaderListener()
{ {
@Override
public void processPOIFSReaderEvent public void processPOIFSReaderEvent
(final POIFSReaderEvent event) (final POIFSReaderEvent event)
{ {
@ -318,6 +319,7 @@ public class TestWrite
final POIFSReader r = new POIFSReader(); final POIFSReader r = new POIFSReader();
r.registerListener(new POIFSReaderListener() r.registerListener(new POIFSReaderListener()
{ {
@Override
public void processPOIFSReaderEvent public void processPOIFSReaderEvent
(final POIFSReaderEvent event) (final POIFSReaderEvent event)
{ {
@ -352,6 +354,7 @@ public class TestWrite
static class MyPOIFSReaderListener implements POIFSReaderListener static class MyPOIFSReaderListener implements POIFSReaderListener
{ {
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
try try

View File

@ -133,6 +133,7 @@ final class Util {
POIFSReader r = new POIFSReader(); POIFSReader r = new POIFSReader();
POIFSReaderListener pfl = new POIFSReaderListener() POIFSReaderListener pfl = new POIFSReaderListener()
{ {
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
try try
@ -201,6 +202,7 @@ final class Util {
final POIFSReader r = new POIFSReader(); final POIFSReader r = new POIFSReader();
POIFSReaderListener pfl = new POIFSReaderListener() POIFSReaderListener pfl = new POIFSReaderListener()
{ {
@Override
public void processPOIFSReaderEvent(final POIFSReaderEvent event) public void processPOIFSReaderEvent(final POIFSReaderEvent event)
{ {
try try

View File

@ -47,6 +47,7 @@ public final class TestEventRecordFactory extends TestCase {
final boolean[] wascalled = { false, }; // hack to pass boolean by ref into inner class final boolean[] wascalled = { false, }; // hack to pass boolean by ref into inner class
ERFListener listener = new ERFListener() { ERFListener listener = new ERFListener() {
@Override
public boolean processRecord(Record rec) { public boolean processRecord(Record rec) {
wascalled[0] = true; wascalled[0] = true;
assertTrue("must be BOFRecord got SID="+rec.getSid(), assertTrue("must be BOFRecord got SID="+rec.getSid(),
@ -154,7 +155,8 @@ public final class TestEventRecordFactory extends TestCase {
ContinueRecord.class.getName(), ContinueRecord.class.getName(),
ContinueRecord.class.getName() ContinueRecord.class.getName()
}; };
public boolean processRecord(Record rec) @Override
public boolean processRecord(Record rec)
{ {
// System.out.println(rec.toString()); // System.out.println(rec.toString());
assertEquals( assertEquals(

Some files were not shown because too many files have changed in this diff Show More