Commit Graph

3223 Commits

Author SHA1 Message Date
Gary Gregory 8308cff798 Remove unnecessary array creation for varargs. 2019-12-18 15:55:25 -05:00
Gary Gregory 45763ba694 Remove trailing white spaces on all lines. 2019-12-18 15:28:39 -05:00
Gary Gregory c7701470fe Fix links to release notes and update contents for 4.4 #127. 2019-12-18 15:21:00 -05:00
Dominik Stadler 7baad88e48 Fix links to release notes and update contents for 4.4 (#127)
* Fix link to release notes for 4.4

* Update release notes for 4.4 with actual changes

* Fix trailing blank
2019-12-18 14:58:48 -05:00
Gary Gregory fecfe442b5 [COLLECTIONS-739] Fix inconsistent @throws comments in DefaultedMap
#123.
2019-12-10 10:06:29 -05:00
Prodigysov b337febe27 [COLLECTIONS-739] Fix inconsistent @throws comments in DefaultedMap (#123)
* COLLECTIONS-739: Fix inconsistent @throws in DefaultedMap.

* COLLECTIONS-739: Change IllegalArgumentException to NullPointerException in DefaultedMap.defaultedMap, and update Javadoc correspondingly.

* COLLECTIONS-739: Add tests for factory methods in DefaultedMap.

* COLLECTIONS-739: Change null checking to use Objects.requireNonNull.
2019-12-10 10:02:37 -05:00
Gary Gregory dc1aca9ed9 Javadoc: Replace <code></code> HTML tags with Javadoc {@code} notation. 2019-12-09 23:08:03 -05:00
Gary Gregory 0eb36e1c78 Javadoc: Replace <code></code> HTML tags with Javadoc {@code} notation. 2019-12-09 22:03:10 -05:00
Gary Gregory 513ae545ee Use Objects#requireNonNull() instead of if-null-then-throw-NPE.
Use simple exception message, instead of mix of message formats.
2019-12-09 21:01:21 -05:00
Gary Gregory 212750768a [COLLECTIONS-740] Add missing @throws comment for
SwitchTransformer.switchTransformer. #124.
2019-12-09 18:02:49 -05:00
Prodigysov 152390a5a3 [COLLECTIONS-740] Add missing @throws comment for SwitchTransformer.switchTransformer. (#124)
* COLLECTIONS-740: Add missing @throws comment for SwitchTransformer.switchTransformer.

* COLLECTIONS-740: Fix inconsistency between Javadocs of TransformerUtils.switchTransformer and SwitchTransformer.switchTransformer.
2019-12-09 18:01:12 -05:00
Gary Gregory dd69cc72dc Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git 2019-12-09 14:39:31 -05:00
Gary Gregory e7d3a10392 Fix inconsistent @throws comments in ListOrderedSet #125. 2019-12-09 11:08:09 -05:00
Chen 45080bed99 Fix inconsistent @throws comments in ListOrderedSet (#125)
* Fix inconsistent @throws comments in ListOrderedSet

* Fix inconsistent @throws comments in MultiKey and update the test cases for them.
2019-12-09 11:06:51 -05:00
Gary Gregory 45b6865b59 [COLLECTIONS-734] Encountered an IllegalStateException while traversing
with Flat3Map.entrySet().

Closes #115. This is slightly modified patch from the PR.





















.
2019-12-05 11:12:44 -05:00
Chen f08623354e Make the code clearer (#119) 2019-11-26 08:35:33 -05:00
Gary Gregory 98293b24bd Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git 2019-11-23 17:24:56 -05:00
Gary Gregory 861df7a823 [test] org.easymock:easymock 4.0.2 -> 4.1. 2019-11-23 17:24:50 -05:00
Chen 92ec85a129 Typo fixed in TreeList. (#116) 2019-11-15 14:40:18 -05:00
Gary Gregory 4551c3df10 Add test cases in UnmodifiableMultiValuedMapTest; #102. 2019-11-03 19:02:29 -05:00
dota17 fbe9566e12 Add test cases in UnmodifiableMultiValuedMapTest (#102)
* Add test cases in UnmodifiableMultiValuedMapTest

* remove import * and comment empty code blocks
2019-11-03 19:02:04 -05:00
Gary Gregory 588b5f9abe Add test cases to ArrayListValuedHashMapTest; #106. 2019-11-03 19:01:17 -05:00
Gary Gregory c30586294f Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git 2019-11-03 19:00:50 -05:00
dota17 81adcf9238 Add test cases for ArrayListValuedHashMapTest (#106)
* Add test cases for ArrayListValuedHashMapTest to cover ArrayListValuedHashMap and AbstractListValuedMap

* remove import * in java file
2019-11-03 19:00:35 -05:00
Gary Gregory f7e2465c1c Add junit for getWithNull and subList in LazyListTest; #103. 2019-11-03 18:59:39 -05:00
dota17 b78b81bc46 Add junit for getWithNull and subList in the LazyListTest. (#103)
* Add junit for getWithNull and subList in the LazyListTest.

* Add junit for add, addAll, remove, subList, isFull and maxSize in the FixedSizeListTest.

* Add junit for  subList in the PredicatedListTest.

* Add junit for  subList in the TransformedListTest.

* Remove the kinds of //---... lines.
2019-11-03 18:58:39 -05:00
Gary Gregory b398b82c7f Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git 2019-11-01 11:45:06 -04:00
Gary Gregory 8c563f2b45 Remove the parentheses in the error message in CircularFifoQueue #107. 2019-11-01 11:45:01 -04:00
dota17 6b24072074 Remove the parens in the error message in CircularFifoQueue (#107) 2019-11-01 11:44:23 -04:00
Gary Gregory 7b7512c4de Add a test case AbstractMultiValuedMapTest#testMultiValuedMapIterator()
#108.
2019-11-01 11:42:35 -04:00
dota17 954c29f969 Add a test case in AbstractMultiValuedMapTest for AbstractMultiValuedMapTest.MultiValuedMapIterator (#108) 2019-11-01 11:42:00 -04:00
Gary Gregory 37c770f29e [COLLECTIONS-674] Add CollectionUtils removeRange, removeCount #91. 2019-11-01 11:39:47 -04:00
Gary Gregory 334941d06a [COLLECTIONS-674] Add drain method to CollectionUtils #91. 2019-11-01 11:37:22 -04:00
Gary Gregory 843429515b Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-collections.git 2019-11-01 11:36:38 -04:00
dota17 c423a9964f [COLLECTIONS-674] Add drain method to CollectionUtils (#91)
* add removeRange&removeCount to CollectionUtils

* modify removeRange&removeCount
2019-11-01 11:36:24 -04:00
Gary Gregory 5a797cd62f Add three test cases in UnmodifiableQueueTest #105. 2019-11-01 11:33:07 -04:00
dota17 210e3f9076 Add three test cases in UnmodifiableQueueTest (#105) 2019-11-01 11:32:45 -04:00
Gary Gregory 68bac4bde0 Update some map test cases #104. 2019-11-01 11:31:37 -04:00
dota17 869993da97 Update test cases (#104)
* Add three test cases in HashSetValuedHashMapTest

* Update test cases
2019-11-01 11:30:54 -04:00
Gary Gregory c6f4b84c7d Add a test case for AbstractMultiValuedMapTest testToString() #100. 2019-10-31 09:48:16 -04:00
dota17 455ebc0aec Add a test case AbstractMultiValuedMapTest testToString() (#100)
* Add a test case AbstractMultiValuedMapTest testToString()

* Update a test case AbstractMultiValuedMapTest testToString()
2019-10-31 08:43:17 -04:00
Gary Gregory ccb5e1a602 TransformedSortedBagTest should work with TransformedSortedBag, not
TransformedBag #98.
2019-10-30 11:25:01 -04:00
dota17 448c99e35e the before testcase of testTransformedBag_decorateTransform is test for TransformeddBag.transformedBag not for SortedBag (#98)
just fix it to test SortedBag
2019-10-30 11:23:56 -04:00
Gary Gregory 97b02e64df Update two test cases in AbstractMultiValuedMapTest testPutAll_map1
testPutAll_map2 #97.
2019-10-30 09:19:08 -04:00
dota17 c4de02ddfc Add code AbstractMultiValuedMapTest testPutAll_Map1,testPutAll_Map2 (#97) 2019-10-30 09:18:37 -04:00
Gary Gregory 3d7f5ba67e Add two test cases in UnmodifiableQueueTest #96. 2019-10-30 09:17:39 -04:00
dota17 543e8416f7 add two testcases in UnmodifiableQueueTest (#96) 2019-10-30 09:16:31 -04:00
Gary Gregory 8f3cde34a9 Add junit for add, remove, setCount and entrySet in the
UnmodifiableMultiSetTest #95.
2019-10-30 09:06:48 -04:00
dota17 5db17ee055 add junit for add, remove, setCount and entrySet in the UnmodifiableMultiSetTest (#95) 2019-10-30 09:04:26 -04:00
Gary Gregory a6b35a4970 Test subMap and tailMap #94. 2019-10-29 10:22:44 -04:00