abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r431411 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/model/Collection.java parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
Date Mon, 14 Aug 2006 19:00:46 GMT
Author: jmsnell
Date: Mon Aug 14 12:00:45 2006
New Revision: 431411

URL: http://svn.apache.org/viewvc?rev=431411&view=rev
Log:
Use variable arguments syntax (e.g. String... accept) instead of array syntax.  
simplifies programming api for java5 impls. jdk142 impls are unaffected.

Modified:
    incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
    incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java

Modified: incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java?rev=431411&r1=431410&r2=431411&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
(original)
+++ incubator/abdera/java/trunk/core/src/main/java/org/apache/abdera/model/Collection.java
Mon Aug 14 12:00:45 2006
@@ -83,7 +83,7 @@
   /**
    * PaceMediaEntries5 (proposed change to APP Draft-08)
    */
-  void setAccept(String[] mediaRanges);
+  void setAccept(String... mediaRanges);
   
   /**
    * Returns true if the collection accepts the specified media type

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java?rev=431411&r1=431410&r2=431411&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMCollection.java
Mon Aug 14 12:00:45 2006
@@ -127,7 +127,7 @@
     return list;
   }
 
-  public void setAccept(String[] mediaRanges) {
+  public void setAccept(String... mediaRanges) {
     if (mediaRanges != null) {
       String value = "";
       for (String type : mediaRanges) {



Mime
View raw message