From: Glen Stampoultzis Date: Fri, 27 Dec 2002 10:54:08 +0000 (+0000) Subject: Some cleanup X-Git-Tag: REL_1_10~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db8d7b6e7dfad684f931a1e8282588d1a40e352b;p=poi.git Some cleanup git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352968 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/record/NameRecord.java b/src/java/org/apache/poi/hssf/record/NameRecord.java index be3c9d6c05..98189b561f 100644 --- a/src/java/org/apache/poi/hssf/record/NameRecord.java +++ b/src/java/org/apache/poi/hssf/record/NameRecord.java @@ -327,7 +327,7 @@ public class NameRecord extends Record { * @return definition -- can be null if we cant parse ptgs */ protected List getNameDefinition() { - return ( List ) field_13_name_definition; + return field_13_name_definition; } /** get the custom menu text @@ -523,10 +523,10 @@ public class NameRecord extends Record { String result = ""; if (ptg.getClass() == Area3DPtg.class){ - result = ((Area3DPtg) ptg).toFormulaString(refs); + result = ptg.toFormulaString(refs); } else if (ptg.getClass() == Ref3DPtg.class){ - result = ((Ref3DPtg) ptg).toFormulaString(refs); + result = ptg.toFormulaString(refs); } return result; @@ -562,12 +562,12 @@ public class NameRecord extends Record { ptg = new Area3DPtg(); ((Area3DPtg) ptg).setExternSheetIndex(externSheetIndex); ((Area3DPtg) ptg).setArea(ref); - this.setDefinitionTextLength((short)((Area3DPtg) ptg).getSize()); + this.setDefinitionTextLength((short)ptg.getSize()); } else { ptg = new Ref3DPtg(); ((Ref3DPtg) ptg).setExternSheetIndex(externSheetIndex); ((Ref3DPtg) ptg).setArea(ref); - this.setDefinitionTextLength((short)((Ref3DPtg) ptg).getSize()); + this.setDefinitionTextLength((short)ptg.getSize()); } field_13_name_definition.push(ptg);