From 809cecbe3ba260d14bf5c3e6965d5d8bd6021243 Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Mon, 30 Mar 2026 23:49:20 +0200 Subject: [PATCH] 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 @@ default String getOutputPath() { * {@link #getOutputPath()} instead. */ @Deprecated - String getOutputName(); + default String getOutputName() { + return getOutputPath(); + } /** * Get the category name for this report.