Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Apr 30, 2020
2 parents 9285c8d + 9540052 commit 356dd1a
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -216,6 +216,10 @@ public static <T> Class<T> findClassForType(QName typeName, Package pkg) {
String namespace = PACKAGE_NAMESPACES.get(pkg);
if (namespace == null) {
XmlSchema xmlSchemaAnnotation = pkg.getAnnotation(XmlSchema.class);
if (xmlSchemaAnnotation == null) {
LOGGER.error("Package namespace unknown, there is also no XmlSchema annotation on package {}, type {}", pkg.getName(), typeName);
}

namespace = xmlSchemaAnnotation.namespace();
PACKAGE_NAMESPACES.put(pkg, namespace);
}
Expand Down

0 comments on commit 356dd1a

Please sign in to comment.