abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r510086 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/TargetType.java
Date Wed, 21 Feb 2007 16:29:48 GMT
Author: jmsnell
Date: Wed Feb 21 08:29:48 2007
New Revision: 510086

URL: http://svn.apache.org/viewvc?view=rev&rev=510086
Log:
Don't use string intern on the TargetType

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/TargetType.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/TargetType.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/TargetType.java?view=diff&rev=510086&r1=510085&r2=510086
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/TargetType.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/provider/TargetType.java
Wed Feb 21 08:29:48 2007
@@ -35,12 +35,12 @@
   
   public static TargetType get(String name) {
     if (name == null) return null;
-    name = name.toUpperCase().intern();
-    if (name == UNKNOWN) return TYPE_UNKNOWN;
-    if (name == COLLECTION) return TYPE_COLLECTION;
-    if (name == ENTRY) return TYPE_ENTRY;
-    if (name == MEDIA) return TYPE_MEDIA;
-    if (name == CATEGORIES) return TYPE_CATEGORIES;
+    name = name.toUpperCase();
+    if (name.equals(UNKNOWN)) return TYPE_UNKNOWN;
+    if (name.equals(COLLECTION)) return TYPE_COLLECTION;
+    if (name.equals(ENTRY)) return TYPE_ENTRY;
+    if (name.equals(MEDIA)) return TYPE_MEDIA;
+    if (name.equals(CATEGORIES)) return TYPE_CATEGORIES;
     return null;
   }
   



Mime
View raw message