You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2026/08/07 07:01:01 UTC
(groovy) branch master updated: minor refactor: I think these were erased accidentally during javadoc generation - adding a note to make it clearer we can remove in Groovy 7
This is an automated email from the ASF dual-hosted git repository.
paulk-asert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 7567bf552a minor refactor: I think these were erased accidentally during javadoc generation - adding a note to make it clearer we can remove in Groovy 7
7567bf552a is described below
commit 7567bf552a6653a71cb21fa5518cb937b45a458c
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Aug 7 17:00:52 2026 +1000
minor refactor: I think these were erased accidentally during javadoc generation - adding a note to make it clearer we can remove in Groovy 7
---
.../org/codehaus/groovy/ast/stmt/TryCatchStatement.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/main/java/org/codehaus/groovy/ast/stmt/TryCatchStatement.java b/src/main/java/org/codehaus/groovy/ast/stmt/TryCatchStatement.java
index c6c5cb552b..9ce3967cde 100644
--- a/src/main/java/org/codehaus/groovy/ast/stmt/TryCatchStatement.java
+++ b/src/main/java/org/codehaus/groovy/ast/stmt/TryCatchStatement.java
@@ -179,6 +179,14 @@ public class TryCatchStatement extends Statement {
//
+ /**
+ * @deprecated since 5.0.0, use {@link #addCatch(CatchStatement)}; planned for removal in Groovy 7
+ */
+ @Deprecated(since = "5.0.0", forRemoval = true)
+ public void addCatch$$bridge(CatchStatement catchStatement) {
+ addCatch(catchStatement);
+ }
+
/**
* Adds a {@link CatchStatement}} to this try-catch block and returns this for method chaining.
*
@@ -191,6 +199,14 @@ public class TryCatchStatement extends Statement {
return this;
}
+ /**
+ * @deprecated since 5.0.0, use {@link #addResource(ExpressionStatement)}; planned for removal in Groovy 7
+ */
+ @Deprecated(since = "5.0.0", forRemoval = true)
+ public void addResource$$bridge(ExpressionStatement resourceStatement) {
+ addResource(resourceStatement);
+ }
+
/**
* Adds a resource {@link ExpressionStatement}} representing a try-with-resources declaration.
* The expression must be a {@link DeclarationExpression} or {@link VariableExpression}.