Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Shouldn't generate toString in Groovy class use Groovy

$
0
0

This is the generated toString for my Hand Groovy class from IDEA 12

 

  @Override  public String toString() {    return"Hand{" +        "playerSeat=" + playerSeat +        ',}'}

 

As you can see this is Java not Groovy. 1) There is a semi-colon. 2) String concatentaion with "+" and 3) Doesn't use triple quotes if you need multiline Strings.

 

I could have sworn this used to work, or that in one previous version of IntelliJ it didn't work, then got fixed, and now not working.

 

I of course, can simply fix the code now, but it should still work.

 

Thanks

 

Mark


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>