From db8d7b6e7dfad684f931a1e8282588d1a40e352b Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Fri, 27 Dec 2002 10:54:08 +0000 Subject: [PATCH] Some cleanup git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352968 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/record/NameRecord.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.39.5