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:
Michael Gorovoy 2010-06-16 22:09:56 +00:00
parent 9c423e9c54
commit 51c6be9c42
2 changed files with 7 additions and 8 deletions

View File

@ -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);
}
}
}

View File

@ -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)
{