File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
spring-test-mvc/src/main/java/org/springframework/test/web/servlet/setup Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public class DefaultMockMvcBuilder<Self extends MockMvcBuilder> extends MockMvcB
5454 private final List <ResultMatcher > globalResultMatchers = new ArrayList <ResultMatcher >();
5555
5656 private final List <ResultHandler > globalResultHandlers = new ArrayList <ResultHandler >();
57-
57+
5858 private Boolean dispatchOptions = Boolean .FALSE ;
5959
6060
@@ -180,17 +180,17 @@ public final <T extends Self> T alwaysDo(ResultHandler resultHandler) {
180180 this .globalResultHandlers .add (resultHandler );
181181 return (T ) this ;
182182 }
183-
183+
184184 /**
185- * Should the {@link DispatcherServlet} dispatch OPTIONS request to controllers.
186- * @param dispatchOptions
187- * @see {@link DispatcherServlet#setDispatchOptionsRequest(boolean)}
188- */
185+ * Should the {@link DispatcherServlet} dispatch OPTIONS request to controllers.
186+ * @param dispatchOptions
187+ * @see DispatcherServlet#setDispatchOptionsRequest(boolean)
188+ */
189189 @ SuppressWarnings ("unchecked" )
190- public final <T extends Self > T dispatchOptions (boolean dispatchOptions ) {
191- this .dispatchOptions = dispatchOptions ;
192- return (T ) this ;
193- }
190+ public final <T extends Self > T dispatchOptions (boolean dispatchOptions ) {
191+ this .dispatchOptions = dispatchOptions ;
192+ return (T ) this ;
193+ }
194194
195195 /**
196196 * Build a {@link MockMvc} instance.
You can’t perform that action at this time.
0 commit comments