abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r442271 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/TargetIterator.java
Date Mon, 11 Sep 2006 17:30:16 GMT
Author: jmsnell
Date: Mon Sep 11 10:30:15 2006
New Revision: 442271

URL: http://svn.apache.org/viewvc?view=rev&rev=442271
Log:
Use hasValue on hasNext instead of testing for null

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/TargetIterator.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/TargetIterator.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/TargetIterator.java?view=diff&rev=442271&r1=442270&r2=442271
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/TargetIterator.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/util/TargetIterator.java
Mon Sep 11 10:30:15 2006
@@ -32,7 +32,7 @@
   }
   
   public boolean hasNext() {
-    return (target.getValue(counter + 1) != null);
+    return target.hasValue(counter + 1);
   }
 
   public String next() {



Mime
View raw message