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 eb5d69496b GROOVY-10307 (fix broken benchmark)
eb5d69496b is described below
commit eb5d69496bce15d4f37d34c302872078f4a4d990
Author: Paul King <[email protected]>
AuthorDate: Mon Mar 2 19:57:32 2026 +1000
GROOVY-10307 (fix broken benchmark)
---
.../org/apache/groovy/perf/grails/GrailsLikePatternsBench.groovy | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/grails/GrailsLikePatternsBench.groovy
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/grails/GrailsLikePatternsBench.groovy
index 17028e579b..187c2bfcce 100644
---
a/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/grails/GrailsLikePatternsBench.groovy
+++
b/subprojects/performance/src/jmh/groovy/org/apache/groovy/perf/grails/GrailsLikePatternsBench.groovy
@@ -18,8 +18,6 @@
*/
package org.apache.groovy.perf.grails
-import groovy.lang.GroovySystem
-
import org.openjdk.jmh.annotations.*
import org.openjdk.jmh.infra.Blackhole
@@ -183,6 +181,10 @@ class GrailsLikePatternsBench {
StringBuilder buffer = new StringBuilder()
int depth = 0
+ void tag(String name, Closure body) {
+ tag(name, [:], body)
+ }
+
void tag(String name, Map attrs = [:], Closure body = null) {
buffer.append(' ' * depth).append("<$name")
attrs.each { k, v -> buffer.append(" $k=\"$v\"") }