]> source.dussan.org Git - poi.git/commitdiff
bug 61059: add @Override annotations
authorJaven O'Neal <onealj@apache.org>
Mon, 1 May 2017 21:51:34 +0000 (21:51 +0000)
committerJaven O'Neal <onealj@apache.org>
Mon, 1 May 2017 21:51:34 +0000 (21:51 +0000)
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

index 8218cbe9ebaa93867ab739fbd608136d1a3bee15..6fa83feb98ab4d1af5f07f1190655d9f19f0c0d2 100644 (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;
        }