You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/07/31 23:44:36 UTC
[groovy] branch master updated: Trivial tweak for GROOVY-9637
This is an automated email from the ASF dual-hosted git repository.
sunlan 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 a445984 Trivial tweak for GROOVY-9637
a445984 is described below
commit a445984a2a6efb1320998ba69badfc35e9c284f0
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Aug 1 07:44:11 2020 +0800
Trivial tweak for GROOVY-9637
---
src/main/java/org/codehaus/groovy/runtime/GStringImpl.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/runtime/GStringImpl.java b/src/main/java/org/codehaus/groovy/runtime/GStringImpl.java
index 18598aa..55bead7 100644
--- a/src/main/java/org/codehaus/groovy/runtime/GStringImpl.java
+++ b/src/main/java/org/codehaus/groovy/runtime/GStringImpl.java
@@ -76,8 +76,9 @@ public class GStringImpl extends GString {
protected GStringImpl(Object[] values, String[] strings, boolean cacheable, String cachedStringLiteral, boolean frozen) {
super(frozen ? values.clone() : values);
this.strings = frozen ? strings.clone() : strings;
- this.frozen = frozen;
this.cacheable = cacheable;
+ this.cachedStringLiteral = cachedStringLiteral;
+ this.frozen = frozen;
}
@Override