felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r901181 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
Date Wed, 20 Jan 2010 13:19:03 GMT
Author: fmeschbe
Date: Wed Jan 20 13:19:03 2010
New Revision: 901181

URL: http://svn.apache.org/viewvc?rev=901181&view=rev
Log:
FELIX-1992 Replace special character with a Character constant

Modified:
    felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java

Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java?rev=901181&r1=901180&r2=901181&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
(original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/obr/BundleRepositoryRender.java
Wed Jan 20 13:19:03 2010
@@ -278,7 +278,7 @@
                         }
                         versions.add( version );
 
-                        labels.add( res.getPresentationName() + "§" + symbolicName );
+                        labels.add( res.getPresentationName() + Character.MAX_VALUE + symbolicName
);
                     }
                 }
             }
@@ -290,7 +290,7 @@
         for ( Iterator ri = labels.iterator(); ri.hasNext(); )
         {
             final String label = ( String ) ri.next();
-            final int idx = label.indexOf( '§' );
+            final int idx = label.indexOf( Character.MAX_VALUE );
             final String presName = label.substring( 0, idx );
             final String symName = label.substring( idx + 1 );
             final Collection versions = ( Collection ) resSet.remove( symName );



Mime
View raw message