Remove use of String.intern().

Me, on the blackboard:

"I will not optimize code without using a profiler."
"I will not optimize code without using a profiler."
"I will not optimize code without using a profiler."
"I will not optimize code without using a profiler."
"I will not optimize code without using a profiler."
...
This commit is contained in:
Michael Bayne
2018-04-30 08:56:15 -07:00
parent 2c53104cf3
commit b823ed87c5
2 changed files with 13 additions and 13 deletions
@@ -839,7 +839,7 @@ public class Mustache {
/** A helper class for named segments. */
protected static abstract class NamedSegment extends Template.Segment {
protected NamedSegment (String name, int line) {
_name = name.intern();
_name = name;
_line = line;
}
protected final String _name;