felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Leangen <o...@leangen.net>
Subject Patch for VersionRange
Date Fri, 22 Sep 2006 02:42:23 GMT

Don't know the best way to submit this, but here is a small patch to
show "prettier" error and warning messages than currently.



Index:
src/main/java/org/apache/felix/framework/searchpolicy/VersionRange.java
===================================================================
---
src/main/java/org/apache/felix/framework/searchpolicy/VersionRange.java
(revision 448749)
+++
src/main/java/org/apache/felix/framework/searchpolicy/VersionRange.java
(working copy)
@@ -95,4 +95,11 @@
             return new VersionRange(new Version(range), true, null,
false);
         }
     }
-}
\ No newline at end of file
+
+    public String toString()
+    {
+        final char lowerBound = m_isLowInclusive ? '(' : '[' ;
+        final char upperBound = m_isHighInclusive ? ')' : ']' ;
+        return "" + lowerBound + m_low + ',' + m_high + upperBound;
+    }
+}



Mime
View raw message