[
https://issues.apache.org/jira/browse/MYFACES-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-1618.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.2
2.0.8
Assignee: Leonardo Uribe
> 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
> Assignee: Leonardo Uribe
> Fix For: 2.0.8, 2.1.2
>
> Attachments: ImplicitObjects-Names.patch
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira