git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1523706 13f79535-47bb-0310-9956-ffa450edef68tags/fop-2_0
@@ -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); |
@@ -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) { |
@@ -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; |