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 a39df8eb71
commit 95538eb815

View File

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