[PERF] - Avoid creating uneccesary objects
------------------------------------------
Key: TUSCANY-2667
URL: https://issues.apache.org/jira/browse/TUSCANY-2667
Project: Tuscany
Issue Type: Improvement
Components: Java SCA Core Runtime
Affects Versions: Java-SCA-1.3.2
Environment: All
Reporter: Dan Becker
Assignee: Dan Becker
Priority: Minor
Performance - unvoid creating unneccesary objects.
"Effective Java Second Edition" by Joshua Block, Item 5 has a good hint for
avoiding unnecessary objects.
This:
String s = new String( "stringette" );
should be replaced by
String s = "stringette";
This change aids in runtime optimizations and string literal sharing across
object instances.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.