Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.0, 4.x
-
Platform Indepedent
Description
The Javadoc comment below states that the parameter map "..., may not be null":
/**
..
- @param map the map to convert to a Properties object, may not be null
- @return the properties object
*/
public static <K, V> Properties toProperties(final Map<K, V> map)Unknown macro: { Properties answer = new Properties(); if (map != null) { ... } return answer; }However, the method return normally without throwing any exception when called with null.
Suggested Fixes:
1. Change "@param map the map to convert to a Properties object, may not be null" to "@param map the map to convert to a Properties object, may be null"
or
2. Remove "may not be null" from @param.