commit | 16dfc3ace6419973df539984aa6714c7b5940fd0 | [log] [tgz] |
---|---|---|
author | Paul Fullbright <paul.fullbright@oracle.com> | Wed May 15 16:29:28 2013 -0400 |
committer | Paul Fullbright <paul.fullbright@oracle.com> | Wed May 15 16:29:28 2013 -0400 |
tree | f241d34c39755423a2b8f8b4bb78a0223a9c80b5 | |
parent | 9c756c6c517789912ca931c9fcbc2e12eb94b852 [diff] |
Check for all blank strings before checking package name (Bug 408174)
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java index 28e8aa3..fc49308 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java
@@ -243,7 +243,7 @@ protected String buildImpliedPackageName() { for (OxmJavaType javaType : getJavaTypes()) { String specifiedName = javaType.getSpecifiedName(); - String packageName = specifiedName == null ? null : TypeDeclarationTools.packageName(specifiedName); + String packageName = StringTools.isBlank(specifiedName) ? null : TypeDeclarationTools.packageName(specifiedName); if (! StringTools.isBlank(packageName)) { return packageName; }