You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by gl...@apache.org on 2003/06/28 07:52:14 UTC
cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/record UnknownRecord.java
glens 2003/06/27 22:52:14
Modified: src/java/org/apache/poi/hssf/record Tag: REL_2_BRANCH
UnknownRecord.java
Log:
Removed some unused stuff from our good friend the unknown record. Also fixed a little bug that probably wasn't effecting anyone.
Revision Changes Path
No revision
No revision
1.6.2.1 +4 -9 jakarta-poi/src/java/org/apache/poi/hssf/record/UnknownRecord.java
Index: UnknownRecord.java
===================================================================
RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/UnknownRecord.java,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -u -r1.6 -r1.6.2.1
--- UnknownRecord.java 30 Apr 2003 04:38:48 -0000 1.6
+++ UnknownRecord.java 28 Jun 2003 05:52:14 -0000 1.6.2.1
@@ -65,16 +65,14 @@
* Company: SuperLink Software, Inc.<P>
* @author Andrew C. Oliver (acoliver at apache dot org)
* @author Jason Height (jheight at chariot dot net dot au)
- * @version 2.0-pre
+ * @author Glen Stampoultzis (glens at apache.org)
*/
public class UnknownRecord
extends Record
{
- private short sid = 0;
- private short size = 0;
- private byte[] thedata = null;
- int offset = 0;
+ private short sid = 0;
+ private byte[] thedata = null;
public UnknownRecord()
{
@@ -91,7 +89,6 @@
public UnknownRecord(short id, short size, byte [] data)
{
sid = id;
- size = size;
thedata = data;
}
@@ -127,7 +124,7 @@
protected void fillFields(byte [] data, short sid)
{
- sid = sid;
+ this.sid = sid;
thedata = data;
}
@@ -179,9 +176,7 @@
/** Unlike the other Record.clone methods this is a shallow clone*/
public Object clone() {
UnknownRecord rec = new UnknownRecord();
- rec.offset = offset;
rec.sid = sid;
- rec.size = size;
rec.thedata = thedata;
return rec;
}