Changes between Version 3 and Version 4 of JavaHints


Ignore:
Timestamp:
03/14/08 14:06:06 (11 years ago)
Author:
joshuadf
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JavaHints

    v3 v4  
    1 [http://www.odi.ch/prog/design/newbies.php Java Anti-Patterns] - some efficiency notes 
     1== Local Variable Usage == 
    22 
    3 == Local Variable Usage == 
    4 If you need a StringBuffer or Collection for a temporary local variable, 
    5 use the less expensive version: 
    6 || Local           || Thread-safe    || 
    7 || Array``List     || Vector         || 
    8 || Hash``Map       || Hashtable      || 
    9 || String``Builder || String``Buffer || 
     3If need temporary local variable, use the less expensive version, 
     4but if you are passing the object around use the concurrent version: 
     5 
     6|| '''Local only''' || '''Thread-safe'''|| 
     7|| `Array``List`    || `Vector`         || 
     8|| `Hash``Map`      || `Hashtable`      || 
     9|| `StringBuilder`  || `StringBuffer`   || 
     10 
     11This and other hints are available in the [http://www.odi.ch/prog/design/newbies.php Java Anti-Patterns] article. 
    1012 
    1113== JVM Options ==