incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r577268 - /incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java
Date Wed, 19 Sep 2007 12:09:56 GMT
Author: cziegeler
Date: Wed Sep 19 05:09:56 2007
New Revision: 577268

URL: http://svn.apache.org/viewvc?rev=577268&view=rev
Log:
Make Resource class public in order to make it usable as an utility class.

Modified:
    incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java

Modified: incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java?rev=577268&r1=577267&r2=577268&view=diff
==============================================================================
--- incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java (original)
+++ incubator/sling/trunk/obr/src/main/java/org/apache/sling/obr/Resource.java Wed Sep 19
05:09:56 2007
@@ -48,7 +48,7 @@
  * @author fmeschbe
  * @version $Rev$, $Date: 2007-07-02 16:13:58 +0200 (Mon, 02 Jul 2007) $
  */
-class Resource implements Serializable, Comparable {
+public class Resource implements Serializable, Comparable {
 
     /**
      * The name of the bundle manifest header providing the specification(s) of
@@ -73,7 +73,7 @@
     private String contact;
     private String license;
     private String source;
-    private SortedSet categories;
+    private SortedSet<String> categories;
 
     private SortedMap capabilities;
     private SortedMap requirements;
@@ -136,7 +136,7 @@
         // default value for the id
         this.id = this.symbolicName + ":" + this.version;
 
-        this.categories = new TreeSet();
+        this.categories = new TreeSet<String>();
         if (categoryString != null) {
             String[] catList = categoryString.split(",");
             for (int i=0; catList != null && i < catList.length; i++) {



Mime
View raw message