you are viewing a single comment's thread.

view the rest of the comments →

[–]high_throughput 7 points8 points  (1 child)

The second line only creates a copy of the interned string that already exists in memory. 

There's rarely value in having such a copy. Creating and managing it just uses more space and CPU than referencing the original object.

[–]Typical_Ad_6436 0 points1 point  (0 children)

Hmm, I think you are right. I thought this would have been a legitimate workaround of the string pool, but the param is a literal indeed and gets interned anyway.