Remove warning suppression in mocks
This commit removes the suppression of warnings in Servlet and Portlet mocks since such suppression is no longer necessary with the upgrade to version 3.0 of the Servlet specification.
This commit is contained in:
parent
b78fa2715a
commit
41737e827c
|
|
@ -253,7 +253,6 @@ public class MockPageContext extends PageContext {
|
|||
return Collections.enumeration(new LinkedHashSet<String>(this.attributes.keySet()));
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Enumeration<String> getAttributeNamesInScope(int scope) {
|
||||
switch (scope) {
|
||||
case PAGE_SCOPE:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2012 the original author or authors.
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -91,7 +91,6 @@ public class ServletWrappingPortletContext implements PortletContext {
|
|||
return this.servletContext.getRealPath(path);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Set<String> getResourcePaths(String path) {
|
||||
return this.servletContext.getResourcePaths(path);
|
||||
}
|
||||
|
|
@ -104,7 +103,6 @@ public class ServletWrappingPortletContext implements PortletContext {
|
|||
return this.servletContext.getAttribute(name);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Enumeration<String> getAttributeNames() {
|
||||
return this.servletContext.getAttributeNames();
|
||||
}
|
||||
|
|
@ -113,7 +111,6 @@ public class ServletWrappingPortletContext implements PortletContext {
|
|||
return this.servletContext.getInitParameter(name);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Enumeration<String> getInitParameterNames() {
|
||||
return this.servletContext.getInitParameterNames();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue