You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Warning: Unchecked generics Array Creation for varags parameter in .andExpect(header("X-ClientVersion", equalTo("warnings_occurs_here"))) does not seem to be necessary.
Phillip Wirth opened SPR-14278 and commented
The Warning: Unchecked generics Array Creation for varags parameter in
.andExpect(header("X-ClientVersion", equalTo("warnings_occurs_here")))
does not seem to be necessary.Complete test method code:
I guess when
@SafeVarargs
would be applied toMockRestRequestMatchers#header
everything would be fine.@SafeVarargs
exists since Java 7.Spring Tests do have a
targetCompatiblity
to 1.8 so this should work too. (If I interpreted that correctly fromsettings.gradle
.)Affects: 4.3 RC2
The text was updated successfully, but these errors were encountered: