abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r422954 - in /incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model: Content.java Text.java
Date Tue, 18 Jul 2006 03:46:45 GMT
Author: jmsnell
Date: Mon Jul 17 20:46:45 2006
New Revision: 422954

URL: http://svn.apache.org/viewvc?rev=422954&view=rev
Log:
Back out the enum constants.... although, it may prove useful to put these back in if it would
make life easier for
folks running jdk1.4.2.

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java?rev=422954&r1=422953&r2=422954&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Content.java Mon
Jul 17 20:46:45 2006
@@ -100,15 +100,9 @@
  */
 public interface Content extends Element {
 
-  public static final int TYPE_TEXT = 0;
-  public static final int TYPE_HTML = 1;
-  public static final int TYPE_XHTML = 2;
-  public static final int TYPE_XML = 3;
-  public static final int TYPE_MEDIA = 4;
-  
   public enum Type { 
     TEXT, HTML, XHTML, XML, MEDIA;
-  
+    
     public static Type typeFromString(String val) {
       Type type = TEXT;
       if (val != null) {

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java?rev=422954&r1=422953&r2=422954&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java (original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Text.java Mon Jul
17 20:46:45 2006
@@ -57,10 +57,6 @@
 public interface Text 
   extends Element {
 
-  public static final int TYPE_TEXT = 0;
-  public static final int TYPE_HTML = 1;
-  public static final int TYPE_XHTML = 2;
-  
   public static enum Type { 
     TEXT, HTML, XHTML;
     



Mime
View raw message