File tree Expand file tree Collapse file tree 5 files changed +8
-16
lines changed
spring-aop/src/main/java/org/springframework/aop/config
spring-jdbc/src/main/java/org/springframework/jdbc/core/simple
main/java/org/springframework
test/java/org/springframework/web/filter Expand file tree Collapse file tree 5 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 24
24
import org .springframework .lang .Nullable ;
25
25
import org .springframework .util .Assert ;
26
26
import org .springframework .util .ClassUtils ;
27
- import org .springframework .util .StringUtils ;
28
27
29
28
/**
30
29
* Implementation of {@link AspectInstanceFactory} that locates the aspect from the
Original file line number Diff line number Diff line change @@ -81,12 +81,10 @@ public abstract class AbstractJdbcInsert {
81
81
private volatile boolean compiled = false ;
82
82
83
83
/** The generated string used for insert statement */
84
- @ Nullable
85
- private String insertString ;
84
+ private String insertString = "" ;
86
85
87
86
/** The SQL type information for the insert columns */
88
- @ Nullable
89
- private int [] insertTypes ;
87
+ private int [] insertTypes = new int [0 ];
90
88
91
89
92
90
/**
@@ -224,15 +222,13 @@ public void setOverrideIncludeSynonymsDefault(boolean override) {
224
222
/**
225
223
* Get the insert string to be used.
226
224
*/
227
- @ Nullable
228
225
public String getInsertString () {
229
226
return this .insertString ;
230
227
}
231
228
232
229
/**
233
230
* Get the array of {@link java.sql.Types} to be used for insert.
234
231
*/
235
- @ Nullable
236
232
public int [] getInsertTypes () {
237
233
return this .insertTypes ;
238
234
}
Original file line number Diff line number Diff line change 29
29
/**
30
30
* Base class for {@link org.springframework.web.client.AsyncRestTemplate}
31
31
* and other HTTP accessing gateway helpers, defining common properties
32
- * such as the {@link org.springframework.http.client.AsyncClientHttpRequestFactory} to operate on.
32
+ * such as the {@link org.springframework.http.client.AsyncClientHttpRequestFactory}
33
+ * to operate on.
33
34
*
34
35
* <p>Not intended to be used directly. See
35
36
* {@link org.springframework.web.client.AsyncRestTemplate}.
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ protected LiveBeansView buildLiveBeansView() {
57
57
protected void doGet (HttpServletRequest request , HttpServletResponse response )
58
58
throws ServletException , IOException {
59
59
60
- Assert .state (this .liveBeansView != null , "No LiveBeanViews available" );
60
+ Assert .state (this .liveBeansView != null , "No LiveBeansView available" );
61
61
String content = this .liveBeansView .getSnapshotAsJson ();
62
62
response .setContentType ("application/json" );
63
63
response .setContentLength (content .length ());
Original file line number Diff line number Diff line change 20
20
import javax .servlet .http .HttpServletResponseWrapper ;
21
21
22
22
import org .junit .Test ;
23
- import org .junit .runner .RunWith ;
24
23
import org .mockito .InOrder ;
25
- import org .mockito .Mock ;
26
24
import org .mockito .Mockito ;
27
- import org .mockito .junit .MockitoJUnitRunner ;
28
25
29
26
import org .springframework .http .HttpHeaders ;
30
27
import org .springframework .http .HttpStatus ;
38
35
* Unit tests for {@link RelativeRedirectFilter}.
39
36
*
40
37
* @author Rob Winch
38
+ * @author Juergen Hoeller
41
39
*/
42
- @ RunWith (MockitoJUnitRunner .class )
43
40
public class RelativeRedirectFilterTests {
44
41
45
- @ Mock
46
- HttpServletResponse response ;
42
+ private RelativeRedirectFilter filter = new RelativeRedirectFilter ();
47
43
48
- RelativeRedirectFilter filter = new RelativeRedirectFilter ( );
44
+ private HttpServletResponse response = Mockito . mock ( HttpServletResponse . class );
49
45
50
46
51
47
@ Test (expected = IllegalArgumentException .class )
You can’t perform that action at this time.
0 commit comments