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-reporting-api.git


The following commit(s) were added to refs/heads/master by this push:
     new a440099  Add default implementation for deprecated getOutputName method
a440099 is described below

commit a440099982626af5b9da261bf79b14bdea237fa3
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Mar 30 23:49:20 2026 +0200

    Add default implementation for deprecated getOutputName method
    
    Without default implementation all child classes have to implement this 
deprecated method.
    
    We already have information that getOutputPath should be implented instead 
of it.
---
 src/main/java/org/apache/maven/reporting/MavenReport.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/maven/reporting/MavenReport.java 
b/src/main/java/org/apache/maven/reporting/MavenReport.java
index 7b950b4..cffb95a 100644
--- a/src/main/java/org/apache/maven/reporting/MavenReport.java
+++ b/src/main/java/org/apache/maven/reporting/MavenReport.java
@@ -72,7 +72,9 @@ public interface MavenReport {
      * {@link #getOutputPath()} instead.
      */
     @Deprecated
-    String getOutputName();
+    default String getOutputName() {
+        return getOutputPath();
+    }
 
     /**
      * Get the category name for this report.

Reply via email to