Prodigysov commented on a change in pull request #123: [COLLECTIONS-739] Fix
inconsistent @throws comments in DefaultedMap
URL:
https://github.com/apache/commons-collections/pull/123#discussion_r354593137
##########
File path: src/main/java/org/apache/commons/collections4/map/DefaultedMap.java
##########
@@ -105,7 +105,8 @@
* @param map the map to decorate, must not be null
* @param factory the factory to use to create entries, must not be null
* @return a new defaulting map
- * @throws NullPointerException if map or factory is null
+ * @throws NullPointerException if map is null
+ * @throws IllegalArgumentException if factory is null
Review comment:
Agreed. I changed to NullPointerException and added test cases for it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services