geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r687475 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/deployment/Artifact.java
Date Wed, 20 Aug 2008 21:34:53 GMT
Author: mcconne
Date: Wed Aug 20 14:34:53 2008
New Revision: 687475

URL: http://svn.apache.org/viewvc?rev=687475&view=rev
Log:
GERONIMODEVTOOLS-489 Clean-up insertion of empty xml tags. Thanks to BJ Reed for this patch
!!

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/deployment/Artifact.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/deployment/Artifact.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/deployment/Artifact.java?rev=687475&r1=687474&r2=687475&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/deployment/Artifact.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jee.v21.jaxbmodel/src/main/java/org/apache/geronimo/jee/deployment/Artifact.java
Wed Aug 20 14:34:53 2008
@@ -168,7 +168,10 @@
      *     
      */
     public void setVersion(String value) {
-        this.version = value;
+        if (value == null || value.length() == 0)
+            this.version = null;
+        else
+            this.version = value;
     }
 
     /**
@@ -192,7 +195,10 @@
      *     
      */
     public void setType(String value) {
-        this.type = value;
+        if (value == null || value.length() == 0)
+            this.type = null;
+        else
+            this.type = value;
     }
 
 



Mime
View raw message