aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryElement.java2
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryEntryElement.java4
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryElement.java b/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryElement.java
index 5a60f20ca..0920f3a78 100644
--- a/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryElement.java
+++ b/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryElement.java
@@ -66,7 +66,7 @@ public class PDFDictionaryElement extends AbstractPDFDictionaryElement {
String key = attlist.getValue(ATT_KEY);
if (key == null) {
missingPropertyError(ATT_KEY);
- } else if (key.isEmpty()) {
+ } else if (key.length() == 0) {
invalidPropertyValueError(ATT_KEY, key, null);
} else {
extension.setKey(key);
diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryEntryElement.java b/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryEntryElement.java
index d8ef1f04e..bcdb90c2c 100644
--- a/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryEntryElement.java
+++ b/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryEntryElement.java
@@ -55,7 +55,7 @@ public class PDFDictionaryEntryElement extends AbstractPDFDictionaryElement {
String key = attlist.getValue("key");
if (key == null) {
missingPropertyError("key");
- } else if (key.isEmpty()) {
+ } else if (key.length() == 0) {
invalidPropertyValueError("key", key, null);
} else {
extension.setKey(key);
@@ -86,7 +86,7 @@ public class PDFDictionaryEntryElement extends AbstractPDFDictionaryElement {
invalidPropertyValueError("<value>", value, null);
}
} else if (extension.getType() == PDFDictionaryEntryType.Name) {
- if (value.isEmpty()) {
+ if (value.length() == 0) {
invalidPropertyValueError("<value>", value, null);
}
} else if (extension.getType() == PDFDictionaryEntryType.Number) {
diff --git a/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java b/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java
index 2b851e0bf..d4b11cdb4 100644
--- a/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java
+++ b/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java
@@ -82,7 +82,7 @@ public class PDFDictionaryExtension extends PDFDictionaryEntryExtension {
return false;
}
String pageNumbers = getProperty(PROPERTY_PAGE_NUMBERS);
- if ((pageNumbers == null) || pageNumbers.isEmpty()) {
+ if ((pageNumbers == null) || (pageNumbers.length() == 0)) {
return false;
} else if (pageNumbers.equals("*")) {
return true;