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:34:05 UTC

[groovy] branch GROOVY_4_0_X 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 GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY_4_0_X by this push:
     new 449bcc3059 fix typo which will impact later JDKs
449bcc3059 is described below

commit 449bcc30593ae90bbaae466cd70d7223f775d05f
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 {