Redundant method call to String.intern
--------------------------------------
Key: MYFACES-1618
URL: https://issues.apache.org/jira/browse/MYFACES-1618
Project: MyFaces Core
Issue Type: Improvement
Affects Versions: 1.2.0-SNAPSHOT
Reporter: Bernhard Huemer
Priority: Trivial
Each implicit object defines its name by using a "interned" string literal,
such as for example the class ApplicationImplicitObject [1] does. The JLS
declares that literals are "interned" anyway ("String objects have a constant
value. String literals-or, more generally, strings that are the values of
constant expressions (ยง15.28)-are "interned" so as to share unique instances,
using the method String.intern.") [2] so I think the additional call to
"intern()" is redundant.
[1]:
http://svn.apache.org/viewvc/myfaces/core/branches/jsf12/impl/src/main/java/org/apache/myfaces/el/unified/resolver/implicitobject/ApplicationImplicitObject.java?revision=518967&view=markup
[2]: http://java.sun.com/docs/books/jls/third_edition/html/lexical.html#3.10.5
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.