Skip to content

Commit 527b778

Browse files
committed
Clean up warnings in spring-test
1 parent 491adf1 commit 527b778

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

spring-test/src/main/java/org/springframework/test/web/servlet/setup/StubWebApplicationContext.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,13 +370,11 @@ public <T> T createBean(Class<T> beanClass) {
370370
}
371371

372372
@Override
373-
@SuppressWarnings("rawtypes")
374373
public Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) {
375374
return BeanUtils.instantiate(beanClass);
376375
}
377376

378377
@Override
379-
@SuppressWarnings("rawtypes")
380378
public Object autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck) {
381379
return BeanUtils.instantiate(beanClass);
382380
}

spring-test/src/test/java/org/springframework/test/web/servlet/samples/standalone/FileUploadControllerTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ public void multipartRequestWrapped() throws Exception {
8383
}
8484

8585

86-
@SuppressWarnings("unused")
8786
@Controller
8887
private static class MultipartController {
8988

spring-test/src/test/java/org/springframework/test/web/servlet/setup/StandaloneMockMvcBuilderTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import javax.servlet.http.HttpServletRequest;
2424
import javax.servlet.http.HttpServletResponse;
2525

26-
import com.fasterxml.jackson.databind.JsonSerializer;
27-
import com.fasterxml.jackson.databind.ser.impl.UnknownSerializer;
2826
import org.junit.Test;
2927

3028
import org.springframework.http.converter.json.SpringHandlerInstantiator;
@@ -38,6 +36,9 @@
3836
import org.springframework.web.servlet.HandlerExecutionChain;
3937
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
4038

39+
import com.fasterxml.jackson.databind.JsonSerializer;
40+
import com.fasterxml.jackson.databind.ser.impl.UnknownSerializer;
41+
4142
import static org.junit.Assert.*;
4243

4344
/**
@@ -100,6 +101,7 @@ public void addFilterPatternContainsNull() {
100101
}
101102

102103
@Test // SPR-13375
104+
@SuppressWarnings("rawtypes")
103105
public void springHandlerInstantiator() {
104106
TestStandaloneMockMvcBuilder builder = new TestStandaloneMockMvcBuilder(new PersonController());
105107
builder.build();

0 commit comments

Comments
 (0)