harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r964765 - /harmony/enhanced/java/trunk/classlib/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/FilteredRowSetTest.java
Date Fri, 16 Jul 2010 11:14:07 GMT
Author: tellison
Date: Fri Jul 16 11:14:06 2010
New Revision: 964765

URL: http://svn.apache.org/viewvc?rev=964765&view=rev
Log:
Fix check for oddness to work with neg numbers too.

Modified:
    harmony/enhanced/java/trunk/classlib/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/FilteredRowSetTest.java

Modified: harmony/enhanced/java/trunk/classlib/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/FilteredRowSetTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/java/trunk/classlib/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/FilteredRowSetTest.java?rev=964765&r1=964764&r2=964765&view=diff
==============================================================================
--- harmony/enhanced/java/trunk/classlib/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/FilteredRowSetTest.java
(original)
+++ harmony/enhanced/java/trunk/classlib/modules/sql/src/test/java/org/apache/harmony/sql/tests/internal/rowset/FilteredRowSetTest.java
Fri Jul 16 11:14:06 2010
@@ -889,7 +889,7 @@ class RangeThree implements Predicate {
 class OddRowFilter implements Predicate {
     public boolean evaluate(RowSet rs) {
         try {
-            return rs.getInt(1) % 2 == 1;
+            return (rs.getInt(1) & 1) == 1;
         } catch (SQLException e) {
             // do nothing
         }



Mime
View raw message