From a7f8060ecca7146c39ece4da37b60672503387e8 Mon Sep 17 00:00:00 2001 From: Javen O'Neal Date: Mon, 1 May 2017 21:51:34 +0000 Subject: [PATCH] bug 61059: add @Override annotations git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1793418 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/ss/formula/ptg/NamePtg.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java b/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java index 8218cbe9eb..6fa83feb98 100644 --- a/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java +++ b/src/java/org/apache/poi/ss/formula/ptg/NamePtg.java @@ -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; } -- 2.39.5