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 2022/07/14 08:32:13 UTC

[groovy] branch master updated: fix typo which will impact later JDKs

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

paulk 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 1ea7b9619e fix typo which will impact later JDKs
1ea7b9619e is described below

commit 1ea7b9619e7a3ec0da9a3e065f78e394206ea632
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Jul 14 18:32:03 2022 +1000

    fix typo which will impact later JDKs
---
 .../src/main/resources/groovy/console/ui/AstBrowserProperties.groovy    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subprojects/groovy-console/src/main/resources/groovy/console/ui/AstBrowserProperties.groovy b/subprojects/groovy-console/src/main/resources/groovy/console/ui/AstBrowserProperties.groovy
index 07bb9c221d..a0a0c7494c 100644
--- a/subprojects/groovy-console/src/main/resources/groovy/console/ui/AstBrowserProperties.groovy
+++ b/subprojects/groovy-console/src/main/resources/groovy/console/ui/AstBrowserProperties.groovy
@@ -37,7 +37,7 @@ org {
                     BlockStatement      = "BlockStatement - (\${expression.statements ? expression.statements.size() : 0})"
                     ExpressionStatement = "ExpressionStatement - \${expression?.expression.getClass().simpleName}"
                     ReturnStatement     = "ReturnStatement - \$expression.text"
-                    TryCatchStatement   = "TryCatchStatement - \${expression.catchStatements?.size ?: 0} catch, \${expression.finallyStatement ? 1 : 0} finally"
+                    TryCatchStatement   = "TryCatchStatement - \${expression.catchStatements?.size() ?: 0} catch, \${expression.finallyStatement ? 1 : 0} finally"
                     CatchStatement      = "CatchStatement - \$expression.exceptionType]"
                 }
                 expr {