Fixed javadoc comments, added a guard against null parameter
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2019 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
9c423e9c54
commit
51c6be9c42
|
@ -254,9 +254,12 @@ public class IPAccessHandler extends HandlerWrapper
|
|||
{
|
||||
patternMap.clear();
|
||||
|
||||
for (String addrPath:entries)
|
||||
if (entries != null && entries.length > 0)
|
||||
{
|
||||
add(addrPath, patternMap);
|
||||
for (String addrPath:entries)
|
||||
{
|
||||
add(addrPath, patternMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ public class IPAddressMap<TYPE> extends HashMap<String, TYPE>
|
|||
private final HashMap<String,IPAddrPattern> _patterns = new HashMap<String,IPAddrPattern>();
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
/** Construct empty AddrPatternMap.
|
||||
/** Construct empty IPAddressMap.
|
||||
*/
|
||||
public IPAddressMap()
|
||||
{
|
||||
|
@ -49,7 +49,7 @@ public class IPAddressMap<TYPE> extends HashMap<String, TYPE>
|
|||
}
|
||||
|
||||
/* --------------------------------------------------------------- */
|
||||
/** Construct empty AddrPatternMap.
|
||||
/** Construct empty IPAddressMap.
|
||||
*
|
||||
* @param capacity initial capacity
|
||||
*/
|
||||
|
@ -84,10 +84,6 @@ public class IPAddressMap<TYPE> extends HashMap<String, TYPE>
|
|||
*
|
||||
* @see java.util.HashMap#get(java.lang.Object)
|
||||
*/
|
||||
/* ------------------------------------------------------------ */
|
||||
/**
|
||||
* @see java.util.HashMap#get(java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public TYPE get(Object key)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue