bug 61059: add @Override annotations

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793418 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2017-05-01 21:51:34 +00:00
parent d5f1f9ca43
commit a7f8060ecc
1 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,6 @@ public final class NamePtg extends OperandPtg implements WorkbookDependentFormul
} }
/** Creates new NamePtg */ /** Creates new NamePtg */
public NamePtg(LittleEndianInput in) { public NamePtg(LittleEndianInput in) {
field_1_label_index = in.readShort(); field_1_label_index = in.readShort();
field_2_zero = in.readShort(); field_2_zero = in.readShort();
@ -55,24 +54,29 @@ public final class NamePtg extends OperandPtg implements WorkbookDependentFormul
return field_1_label_index - 1; // convert to zero based return field_1_label_index - 1; // convert to zero based
} }
@Override
public void write(LittleEndianOutput out) { public void write(LittleEndianOutput out) {
out.writeByte(sid + getPtgClass()); out.writeByte(sid + getPtgClass());
out.writeShort(field_1_label_index); out.writeShort(field_1_label_index);
out.writeShort(field_2_zero); out.writeShort(field_2_zero);
} }
@Override
public int getSize() { public int getSize() {
return SIZE; return SIZE;
} }
@Override
public String toFormulaString(FormulaRenderingWorkbook book) { public String toFormulaString(FormulaRenderingWorkbook book) {
return book.getNameText(this); return book.getNameText(this);
} }
@Override
public String toFormulaString() { public String toFormulaString() {
throw new RuntimeException("3D references need a workbook to determine formula text"); throw new RuntimeException("3D references need a workbook to determine formula text");
} }
@Override
public byte getDefaultOperandClass() { public byte getDefaultOperandClass() {
return Ptg.CLASS_REF; return Ptg.CLASS_REF;
} }