GitHub user beradrian opened a pull request:
https://github.com/apache/commons-lang/pull/86
Fix issue 1122
Fixes issue https://issues.apache.org/jira/browse/LANG-1122 as discussed.
I also added a link to an article on my blog about shift algorithm, as it
was discussed previously. Hope it's fine, if not, I can remove it.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/beradrian/commons-lang master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-lang/pull/86.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #86
----
commit 5b7608d1549989d92dd159392c19d9ba8ce0e62e
Author: beradrian <[email protected]>
Date: 2015-05-07T06:50:41Z
consistent treatment for negative indices for swap method
commit e79a590e0cdabd93883aca964db2a862ff3f8490
Author: beradrian <[email protected]>
Date: 2015-05-07T08:31:28Z
new test case
explanations about algorithm
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---