aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2013-09-16 15:35:23 +0000
committerGlenn Adams <gadams@apache.org>2013-09-16 15:35:23 +0000
commite39326ac56573b9cc97830e365c7dbf403172f41 (patch)
tree19e9835cfdffe03d263d990b330117e7bc508114 /src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java
parent54eec84366117b4705a71810f1d1c87529c32ba5 (diff)
downloadxmlgraphics-fop-e39326ac56573b9cc97830e365c7dbf403172f41.tar.gz
xmlgraphics-fop-e39326ac56573b9cc97830e365c7dbf403172f41.zip
FOP-2298: Java 5 doesn't support String.isEmpty
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1523706 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java')
-rw-r--r--src/java/org/apache/fop/render/pdf/extensions/PDFDictionaryExtension.java2
1 files changed, 1 insertions, 1 deletions
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;