Author: rob.stryker(a)jboss.com
Date: 2012-10-04 13:56:27 -0400 (Thu, 04 Oct 2012)
New Revision: 44305
Modified:
branches/jbosstools-4.0.0.Alpha2/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java
Log:
JBIDE-12495 critical to branch alpha2
Modified:
branches/jbosstools-4.0.0.Alpha2/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java
===================================================================
---
branches/jbosstools-4.0.0.Alpha2/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java 2012-10-04
17:33:05 UTC (rev 44304)
+++
branches/jbosstools-4.0.0.Alpha2/archives/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/model/internal/xb/XMLBinding.java 2012-10-04
17:56:27 UTC (rev 44305)
@@ -112,8 +112,8 @@
private static List nullSafe(List list) {
return list == null ? new ArrayList() : list;
}
- private static boolean isEmpty(String s) {
- return s != null && !"".equals(s); //$NON-NLS-1$
+ private static boolean isEmpty(String s) {
+ return (s == null || s.isEmpty());
}
private static void marshallAddPackages(XMLMemento memento, List packages) throws
XbException {
Iterator i = packages.iterator();
Show replies by date