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);
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);
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) {