Fix unexpected Groovy side effects (e.g. Set += String)
This commit is contained in:
parent
a7aed7bc63
commit
fd2ee64c9f
|
@ -422,10 +422,6 @@ public class ExpressionFormatMethods {
|
|||
return Locale.forLanguageTag(self);
|
||||
}
|
||||
|
||||
public static String plus(Object self, String value) {
|
||||
return self.toString() + value;
|
||||
}
|
||||
|
||||
public static String plus(String self, Closure<?> closure) {
|
||||
try {
|
||||
return self + closure.call();
|
||||
|
|
Loading…
Reference in New Issue