GitHub user otaviojava opened a pull request:
https://github.com/apache/tomee/pull/296
Improves the Collections API with newest method
This PR has the goal to improve the interactions with a collection to both
reduce the number of code to get a maintainable code and allows an easier
improving from the JIT.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/otaviojava/tomee update_collection_api
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tomee/pull/296.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 #296
----
commit 59c77e567b584ecd212db3f4e0622eace4439666
Author: Otavio Santana <otaviopolianasantana@...>
Date: 2018-12-20T10:14:00Z
Use foreach instead of manual interaction by index. Available in Java 5 and
newer.
commit cb67f0e51aa2efb6e6959dd3d49fd2f322ed491a
Author: Otavio Santana <otaviopolianasantana@...>
Date: 2018-12-20T10:17:22Z
Simplicity with Map operations with new operations
commit 8eb7338a97c1f8127604cdcd88282a2a2344c0ed
Author: Otavio Santana <otaviopolianasantana@...>
Date: 2018-12-20T10:32:50Z
Use foreach instead of manual do while. Available in Java 5 and newer.
commit 3a613ff08d70e46b56385f720d4852956dca6d52
Author: Otavio Santana <otaviopolianasantana@...>
Date: 2018-12-20T10:35:46Z
Uses list.sort instead of Collections.sort method.
commit 7ad09234c545aacb507b8b1171542ea59b8842a2
Author: Otavio Santana <otaviopolianasantana@...>
Date: 2018-12-20T10:37:03Z
Uses removeIf method instead of use iterator.
commit d2d44e6d6ddf36bfefbf564405e0daef5d32cc99
Author: Otavio Santana <otaviopolianasantana@...>
Date: 2018-12-20T11:14:02Z
Uses method references instead of anonymous class
----
---