aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKelly Campbell <kellyc@apache.org>2001-02-09 02:45:58 +0000
committerKelly Campbell <kellyc@apache.org>2001-02-09 02:45:58 +0000
commit77af99ce2b708187e2921ca828a960d00662650b (patch)
treea1904a2fd1fb69f5ba207786547ad501c464c2f6 /src
parentdce510068ae1aabe775918eba9be04c7fb8ac50c (diff)
downloadxmlgraphics-fop-77af99ce2b708187e2921ca828a960d00662650b.tar.gz
xmlgraphics-fop-77af99ce2b708187e2921ca828a960d00662650b.zip
JDK 1.1 fixes
PR: Obtained from: Submitted by: Peter S. Housel [housel@acm.org] Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194033 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/org/apache/fop/extensions/Outline.java2
-rw-r--r--src/org/apache/fop/fo/NumberProperty.java12
-rw-r--r--src/org/apache/fop/pdf/PDFWArray.java6
3 files changed, 10 insertions, 10 deletions
diff --git a/src/org/apache/fop/extensions/Outline.java b/src/org/apache/fop/extensions/Outline.java
index ee70ce529..b785919cd 100644
--- a/src/org/apache/fop/extensions/Outline.java
+++ b/src/org/apache/fop/extensions/Outline.java
@@ -114,7 +114,7 @@ public class Outline extends ExtensionObj
_label = (Label)obj;
}
else if (obj instanceof Outline) {
- _outlines.add(obj);
+ _outlines.addElement(obj);
}
super.addChild(obj);
}
diff --git a/src/org/apache/fop/fo/NumberProperty.java b/src/org/apache/fop/fo/NumberProperty.java
index b002595c5..bc117cdaa 100644
--- a/src/org/apache/fop/fo/NumberProperty.java
+++ b/src/org/apache/fop/fo/NumberProperty.java
@@ -74,16 +74,16 @@ public class NumberProperty extends Property {
private Number number;
- public NumberProperty(Number number) {
- this.number = number;
+ public NumberProperty(Number num) {
+ this.number = num;
}
- public NumberProperty(double number) {
- this.number = new Double(number);
+ public NumberProperty(double num) {
+ this.number = new Double(num);
}
- public NumberProperty(int number) {
- this.number = new Integer(number);
+ public NumberProperty(int num) {
+ this.number = new Integer(num);
}
public Number getNumber() {
diff --git a/src/org/apache/fop/pdf/PDFWArray.java b/src/org/apache/fop/pdf/PDFWArray.java
index 6e025b6f1..acbdd07c5 100644
--- a/src/org/apache/fop/pdf/PDFWArray.java
+++ b/src/org/apache/fop/pdf/PDFWArray.java
@@ -72,7 +72,7 @@ public class PDFWArray {
* @param metrics the metrics array.
*/
public void addEntry(int start, int[] metrics) {
- entries.add(new Entry(start, metrics));
+ entries.addElement(new Entry(start, metrics));
}
/**
@@ -83,7 +83,7 @@ public class PDFWArray {
* @param width the width for all CIDs in the range
*/
public void addEntry(int first, int last, int width) {
- entries.add(new int[] {first, last, width});
+ entries.addElement(new int[] {first, last, width});
}
/**
@@ -96,7 +96,7 @@ public class PDFWArray {
* @param posY the y component for the vertical position vector
*/
public void addEntry(int first, int last, int width, int posX, int posY) {
- entries.add(new int[] {first, last, width, posX, posY});
+ entries.addElement(new int[] {first, last, width, posX, posY});
}
public byte[] toPDF() {