felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r919369 - /felix/trunk/sigil/common/osgi/src/org/apache/felix/sigil/common/osgi/VersionTable.java
Date Fri, 05 Mar 2010 10:52:46 GMT
Author: dsavage
Date: Fri Mar  5 10:52:46 2010
New Revision: 919369

URL: http://svn.apache.org/viewvc?rev=919369&view=rev
Log:
allow version table to parse "" qualifer

Modified:
    felix/trunk/sigil/common/osgi/src/org/apache/felix/sigil/common/osgi/VersionTable.java

Modified: felix/trunk/sigil/common/osgi/src/org/apache/felix/sigil/common/osgi/VersionTable.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/common/osgi/src/org/apache/felix/sigil/common/osgi/VersionTable.java?rev=919369&r1=919368&r2=919369&view=diff
==============================================================================
--- felix/trunk/sigil/common/osgi/src/org/apache/felix/sigil/common/osgi/VersionTable.java
(original)
+++ felix/trunk/sigil/common/osgi/src/org/apache/felix/sigil/common/osgi/VersionTable.java
Fri Mar  5 10:52:46 2010
@@ -53,11 +53,10 @@
     public static Version getVersion(int major, int minor, int micro, String qualifier) {
         String key;
         
-        if ( qualifier == null ) {
+        if ( qualifier == null || qualifier.length() == 0 ) {
             key = major + "." + minor + "." + micro;
         }
         else {
-            assert qualifier.trim().length() > 0;
             key = major + "." + minor + "." + micro + "." + qualifier;            
         }
         



Mime
View raw message