harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Wilson (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6323) Simplify and speed-up shuffle, add a non-probabilistic test
Date Thu, 27 Aug 2009 23:48:59 GMT
Simplify and speed-up shuffle, add a non-probabilistic test
-----------------------------------------------------------

                 Key: HARMONY-6323
                 URL: https://issues.apache.org/jira/browse/HARMONY-6323
             Project: Harmony
          Issue Type: Improvement
          Components: Classlib
         Environment: SVN Revision 801399
            Reporter: Jesse Wilson


Shuffle needlessly tests Random.nextInt() for a negative value
It iterates from index N-1 to 0, which means it always swaps index 0 with itself needlessly.
It is only tested with probabilistic tests, the patch adds a proper test. Note that the attached
test also passes on the RI.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message