Fix "unnecessary @SuppressWarnings" warnings

This commit is contained in:
Chris Beams
2012-12-28 19:16:22 +01:00
parent 8d2e125e7b
commit 4c7cafbde6
14 changed files with 8 additions and 22 deletions

View File

@@ -252,7 +252,7 @@ public final class WebAsyncManager {
* @see #getConcurrentResult()
* @see #getConcurrentResultContext()
*/
@SuppressWarnings({ "rawtypes", "unchecked" })
@SuppressWarnings({"unchecked" })
public void startCallableProcessing(final Callable<?> callable, Object... processingContext) throws Exception {
Assert.notNull(callable, "Callable must not be null");
startCallableProcessing(new WebAsyncTask(callable), processingContext);

View File

@@ -156,7 +156,6 @@ public class ServletContextResourcePatternResolver extends PathMatchingResourceP
* @param result the Set of matching Resources to add to
* @throws IOException if jar contents could not be retrieved
*/
@SuppressWarnings("unchecked")
private void doRetrieveMatchingJarEntries(String jarFilePath, String entryPattern, Set<Resource> result) {
if (logger.isDebugEnabled()) {
logger.debug("Searching jar file [" + jarFilePath + "] for entries matching [" + entryPattern + "]");

View File

@@ -103,7 +103,6 @@ public class DefaultMultipartHttpServletRequest extends AbstractMultipartHttpSer
}
@Override
@SuppressWarnings("unchecked")
public Map<String, String[]> getParameterMap() {
Map<String, String[]> paramMap = new HashMap<String, String[]>();
paramMap.putAll(super.getParameterMap());

View File

@@ -573,7 +573,6 @@ public abstract class WebUtils {
* @return the value of the parameter, or {@code null}
* if the parameter does not exist in given request
*/
@SuppressWarnings("unchecked")
public static String findParameterValue(ServletRequest request, String name) {
return findParameterValue(request.getParameterMap(), name);
}