mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-02 12:39:14 +00:00
Remove unused casts and variables
This commit is contained in:
@@ -459,7 +459,7 @@ class ErrorResponseExceptionTests {
|
||||
ErrorResponse ex, @Nullable String suffix, @Nullable Object[] arguments) {
|
||||
|
||||
assertThat(ex.getDetailMessageCode())
|
||||
.isEqualTo(ErrorResponse.getDefaultDetailMessageCode(((Exception) ex).getClass(), suffix));
|
||||
.isEqualTo(ErrorResponse.getDefaultDetailMessageCode(ex.getClass(), suffix));
|
||||
|
||||
if (arguments != null) {
|
||||
assertThat(ex.getDetailMessageArguments()).containsExactlyElementsOf(Arrays.asList(arguments));
|
||||
|
||||
Reference in New Issue
Block a user