From cf8a3b3018454ba747e737e1e1d371d718cc4072 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Tue, 9 Mar 2021 18:51:34 +0100 Subject: [PATCH] Deprecate FlywayMigrationScriptMissingFailureAnalyzer See gh-25562 --- .../flyway/FlywayMigrationScriptMissingFailureAnalyzer.java | 4 +++- .../FlywayMigrationScriptMissingFailureAnalyzerTests.java | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzer.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzer.java index ebf282e153..8365788962 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzer.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzer.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,7 +25,9 @@ import org.springframework.boot.diagnostics.FailureAnalysis; * * @author Anand Shastri * @author Stephane Nicoll + * @deprecated since 2.5.0 as location checking is deprecated */ +@Deprecated class FlywayMigrationScriptMissingFailureAnalyzer extends AbstractFailureAnalyzer { diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzerTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzerTests.java index 01cdfc1b49..c3f7fef9b3 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzerTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationScriptMissingFailureAnalyzerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,9 @@ import static org.assertj.core.api.Assertions.assertThat; * Tests for {@link FlywayMigrationScriptMissingFailureAnalyzer}. * * @author Anand Shastri + * @deprecated since 2.5.0 as location checking is deprecated */ +@Deprecated class FlywayMigrationScriptMissingFailureAnalyzerTests { @Test