Merge branch 'SPR-10093' into 3.2.x
* SPR-10093: Polish changes from pull request #205
This commit is contained in:
@@ -182,15 +182,15 @@ public class DefaultMockMvcBuilder<Self extends MockMvcBuilder> extends MockMvcB
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Should the {@link DispatcherServlet} dispatch OPTIONS request to controllers.
|
* Should the {@link DispatcherServlet} dispatch OPTIONS request to controllers.
|
||||||
* @param dispatchOptions
|
* @param dispatchOptions
|
||||||
* @see {@link DispatcherServlet#setDispatchOptionsRequest(boolean)}
|
* @see DispatcherServlet#setDispatchOptionsRequest(boolean)
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public final <T extends Self> T dispatchOptions(boolean dispatchOptions) {
|
public final <T extends Self> T dispatchOptions(boolean dispatchOptions) {
|
||||||
this.dispatchOptions = dispatchOptions;
|
this.dispatchOptions = dispatchOptions;
|
||||||
return (T) this;
|
return (T) this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build a {@link MockMvc} instance.
|
* Build a {@link MockMvc} instance.
|
||||||
|
|||||||
Reference in New Issue
Block a user