Suppress deprecation message when compiling. Can't avoid implementing the deprecated method, but we don't need to see the warning.
This commit is contained in:
parent
c1b15742de
commit
d7e274f11b
1 changed files with 332 additions and 332 deletions
|
@ -23,6 +23,7 @@ import javax.servlet.http.HttpSession;
|
||||||
*
|
*
|
||||||
* @author jeb228
|
* @author jeb228
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public class HttpServletRequestStub implements HttpServletRequest {
|
public class HttpServletRequestStub implements HttpServletRequest {
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
// Stub infrastructure
|
// Stub infrastructure
|
||||||
|
@ -55,7 +56,6 @@ public class HttpServletRequestStub implements HttpServletRequest {
|
||||||
parameters.remove(name);
|
parameters.remove(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
// Stub methods
|
// Stub methods
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
|
@ -68,8 +68,8 @@ public class HttpServletRequestStub implements HttpServletRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map getParameterMap() {
|
public Map getParameterMap() {
|
||||||
Map<String,String[]> map = new HashMap<String,String[]>();
|
Map<String, String[]> map = new HashMap<String, String[]>();
|
||||||
for( String key : parameters.keySet() ){
|
for (String key : parameters.keySet()) {
|
||||||
map.put(key, parameters.get(key).toArray(new String[0]));
|
map.put(key, parameters.get(key).toArray(new String[0]));
|
||||||
}
|
}
|
||||||
return map;
|
return map;
|
||||||
|
|
Loading…
Add table
Reference in a new issue