This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/master by this push:
     new 246a23f8f fix deprecation notices for suiteXmlFiles parameter
246a23f8f is described below

commit 246a23f8f1f6a2c7d5f047645e88a4ca2460da76
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Sat Mar 28 14:26:43 2026 +0100

    fix deprecation notices for suiteXmlFiles parameter
    
    - `@deprecated` annotation should be placed after docs ...
    - drop some of the unused methods
---
 .../java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java    | 2 +-
 .../booterclient/BooterDeserializerProviderConfigurationTest.java     | 4 ----
 .../booterclient/BooterDeserializerStartupConfigurationTest.java      | 4 ----
 .../src/main/java/org/apache/maven/plugin/surefire/SurefireMojo.java  | 2 +-
 4 files changed, 2 insertions(+), 10 deletions(-)

diff --git 
a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java
 
b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java
index 324b936b0..3a4b4dcfc 100644
--- 
a/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java
+++ 
b/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java
@@ -308,7 +308,6 @@ public class IntegrationTestMojo extends 
AbstractSurefireMojo {
     private int rerunFailingTestsCount;
 
     /**
-     * @deprecated not supported after 3.6.0, please use groups or Junit suite 
support
      * (TestNG) List of &lt;suiteXmlFile&gt; elements specifying TestNG suite 
xml file locations. Note that
      * {@code suiteXmlFiles} is incompatible with several other parameters of 
this plugin, like
      * {@code includes} and {@code excludes}.<br>
@@ -316,6 +315,7 @@ public class IntegrationTestMojo extends 
AbstractSurefireMojo {
      * instead of an entire suite).
      *
      * @since 2.2
+     * @deprecated not supported after 3.6.0, please use groups or Junit suite 
support
      */
     @Parameter(property = "failsafe.suiteXmlFiles")
     @Deprecated
diff --git 
a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerProviderConfigurationTest.java
 
b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerProviderConfigurationTest.java
index b44817987..580b03997 100644
--- 
a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerProviderConfigurationTest.java
+++ 
b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerProviderConfigurationTest.java
@@ -279,8 +279,4 @@ private StartupConfiguration 
getTestStartupConfiguration(ClassLoaderConfiguratio
     private File getTestSourceDirectory() {
         return new File("TestSrc");
     }
-
-    private List<String> getSuiteXmlFileStrings() {
-        return Arrays.asList("A1", "A2");
-    }
 }
diff --git 
a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerStartupConfigurationTest.java
 
b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerStartupConfigurationTest.java
index de95ca93e..0424d37c3 100644
--- 
a/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerStartupConfigurationTest.java
+++ 
b/maven-surefire-common/src/test/java/org/apache/maven/plugin/surefire/booterclient/BooterDeserializerStartupConfigurationTest.java
@@ -206,8 +206,4 @@ private StartupConfiguration 
getTestStartupConfiguration(ClassLoaderConfiguratio
     private File getTestSourceDirectory() {
         return new File("TestSrc");
     }
-
-    private String[] getSuiteXmlFileStrings() {
-        return new String[] {"A1", "A2"};
-    }
 }
diff --git 
a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefireMojo.java
 
b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefireMojo.java
index bec35adef..08e5ea0d0 100644
--- 
a/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefireMojo.java
+++ 
b/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefireMojo.java
@@ -287,7 +287,6 @@ public class SurefireMojo extends AbstractSurefireMojo 
implements SurefireReport
     private int failOnFlakeCount;
 
     /**
-     * @deprecated not supported after 3.6.0, please use groups or Junit suite 
support
      * (TestNG) List of &lt;suiteXmlFile&gt; elements specifying TestNG suite 
xml file locations. Note that
      * {@code suiteXmlFiles} is incompatible with several other parameters of 
this plugin, like
      * {@code includes} and {@code excludes}.<br>
@@ -295,6 +294,7 @@ public class SurefireMojo extends AbstractSurefireMojo 
implements SurefireReport
      * instead of an entire suite).
      *
      * @since 2.2
+     * @deprecated not supported after 3.6.0, please use groups or Junit suite 
support
      */
     @Deprecated
     @Parameter(property = "surefire.suiteXmlFiles")

Reply via email to