IDEMPIERE-5719 PackInHandler.dumpUnresolvedElements include elements that doesn't have any unresolve properties (#1832)

This commit is contained in:
hengsin 2023-05-11 22:26:48 +08:00 committed by GitHub
parent cc90586aa0
commit 39a5bd813d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -483,6 +483,9 @@ public class PackInHandler extends DefaultHandler {
if (!entry.startElement) if (!entry.startElement)
{ {
Element e = entry.element; Element e = entry.element;
if (e.unresolved == null || e.unresolved.length() == 0)
continue;
StringBuilder s = new StringBuilder(e.qName); StringBuilder s = new StringBuilder(e.qName);
s.append(" ["); s.append(" [");
Set<String> keys = e.properties.keySet(); Set<String> keys = e.properties.keySet();
@ -498,8 +501,7 @@ public class PackInHandler extends DefaultHandler {
i++; i++;
} }
s.append("]"); s.append("]");
if (e.unresolved != null && e.unresolved.length() > 0) s.append(" unresolved ").append(e.unresolved);
s.append(" unresolved ").append(e.unresolved);
log.warning(s.toString()); log.warning(s.toString());
packIn.getNotifier().addFailureLine(s.toString()); packIn.getNotifier().addFailureLine(s.toString());
} }