Fix "unnecessary @SuppressWarnings" warnings
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 + "]");
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user