I would agree using an unnecessary doubleQuotes should be allowed for the reason originally specified. I prefer to use doubleQuotes if I am not sure whether it will always be a String or GString. It is also the case that Groovy itself will optimize this and create a String, not a Gstring in this situation.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "feature-requests Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Feature Requests"
Great idea!
Closed as duplicate of rule #3180600: "String contains a valid GString token"
https://sourceforge.net/tracker/?func=detail&aid=3180600&group_id=250145&atid=1126575
Okay, on second thought, I am reopening, since that other issue is more specific. We can reconsider overlap later.
I would agree using an unnecessary doubleQuotes should be allowed for the reason originally specified. I prefer to use doubleQuotes if I am not sure whether it will always be a String or GString. It is also the case that Groovy itself will optimize this and create a String, not a Gstring in this situation.
Moving this over to Feature Requests