From b6d0b44703dac25bebefc78f8a531ebcede8d540 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 18 Nov 2021 17:25:43 -0800 Subject: [PATCH] Fix @SuppressWarnings --- .../SampleActuatorCustomSecurityApplicationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/src/test/java/smoketest/actuator/customsecurity/SampleActuatorCustomSecurityApplicationTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/src/test/java/smoketest/actuator/customsecurity/SampleActuatorCustomSecurityApplicationTests.java index da74b6a53648..42a4d7168fd7 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/src/test/java/smoketest/actuator/customsecurity/SampleActuatorCustomSecurityApplicationTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-actuator-custom-security/src/test/java/smoketest/actuator/customsecurity/SampleActuatorCustomSecurityApplicationTests.java @@ -62,8 +62,8 @@ Environment getEnvironment() { } @Test + @SuppressWarnings({ "rawtypes", "unchecked" }) void testInsecureApplicationPath() { - @SuppressWarnings("rawtypes") ResponseEntity entity = restTemplate().getForEntity(getPath() + "/foo", Map.class); assertThat(entity.getStatusCode()).isEqualTo(HttpStatus.INTERNAL_SERVER_ERROR); assertThat(entity.getBody()).isNull();