From: Avik Sengupta Date: Wed, 12 Jun 2002 07:50:29 +0000 (+0000) Subject: compile under jdk1.2.2 X-Git-Tag: REL_1_10~327 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=753c2d7c6d8c45199e60e3c5df7b19f7ff0be807;p=poi.git compile under jdk1.2.2 git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352677 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java b/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java index 33e0be384d..14034edd87 100644 --- a/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/Area3DPtg.java @@ -68,7 +68,7 @@ import org.apache.poi.hssf.util.RangeAddress; public class Area3DPtg extends Ptg { - public final static short sid = 0x3b; + public final static byte sid = 0x3b; private final static int SIZE = 11; // 10 + 1 for Ptg private short field_1_index_extern_sheet; private short field_2_first_row; diff --git a/src/java/org/apache/poi/hssf/record/formula/AttrPtg.java b/src/java/org/apache/poi/hssf/record/formula/AttrPtg.java index a741192b8c..ce0ef78b5d 100644 --- a/src/java/org/apache/poi/hssf/record/formula/AttrPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/AttrPtg.java @@ -75,7 +75,7 @@ import java.util.List; public class AttrPtg extends OperationPtg { - public final static short sid = 0x19; + public final static byte sid = 0x19; private final static int SIZE = 4; private byte field_1_options; private short field_2_data; diff --git a/src/java/org/apache/poi/hssf/record/formula/FuncPtg.java b/src/java/org/apache/poi/hssf/record/formula/FuncPtg.java index ad573d836e..73729fb361 100644 --- a/src/java/org/apache/poi/hssf/record/formula/FuncPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/FuncPtg.java @@ -3,7 +3,7 @@ import org.apache.poi.util.LittleEndian; public class FuncPtg extends AbstractFunctionPtg{ - public final static short sid = 0x21; + public final static byte sid = 0x21; private int numParams=0; /**Creates new function pointer from a byte array * usually called while reading an excel file. @@ -20,7 +20,7 @@ public class FuncPtg extends AbstractFunctionPtg{ } public void writeBytes(byte[] array, int offset) { - array[offset+0]=(byte) (sid + ptgClass); + array[offset+0]= (byte) (sid + ptgClass); //array[offset+1]=field_1_num_args; LittleEndian.putShort(array,offset+1,field_2_fnc_index); } diff --git a/src/java/org/apache/poi/hssf/record/formula/FuncVarPtg.java b/src/java/org/apache/poi/hssf/record/formula/FuncVarPtg.java index fff93a5dbd..9faf5ac07f 100644 --- a/src/java/org/apache/poi/hssf/record/formula/FuncVarPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/FuncVarPtg.java @@ -2,7 +2,7 @@ package org.apache.poi.hssf.record.formula; import org.apache.poi.util.LittleEndian; public class FuncVarPtg extends AbstractFunctionPtg{ - public final static short sid = 0x22; + public final static byte sid = 0x22; /**Creates new function pointer from a byte array * usually called while reading an excel file. diff --git a/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java b/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java index 3df425ae15..9c91baeeaf 100644 --- a/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java +++ b/src/java/org/apache/poi/hssf/record/formula/Ref3DPtg.java @@ -68,7 +68,7 @@ import org.apache.poi.hssf.util.RangeAddress; */ public class Ref3DPtg extends Ptg { - public final static short sid = 0x3a; + public final static byte sid = 0x3a; private final static int SIZE = 7; // 6 + 1 for Ptg private short field_1_index_extern_sheet; private short field_2_row; diff --git a/src/testcases/org/apache/poi/hssf/record/TestSCLRecord.java b/src/testcases/org/apache/poi/hssf/record/TestSCLRecord.java index a9e25bc11b..38ecce414a 100644 --- a/src/testcases/org/apache/poi/hssf/record/TestSCLRecord.java +++ b/src/testcases/org/apache/poi/hssf/record/TestSCLRecord.java @@ -71,7 +71,7 @@ public class TestSCLRecord extends TestCase { byte[] data = new byte[] { - (short)0x3,(short)0x0,(short)0x4,(short)0x0 + (byte)0x3,(byte)0x0,(byte)0x4,(byte)0x0 }; public TestSCLRecord(String name)