Append to String Within a Loop (ASWL)

Description:

Performance enhancements can be obtained by replacing String operations with StringBuffer operations if a String object is appended to within a loop.

Example:

   public class ATSWL {
      public String func () {
         String var = "var";
         for (int i = 0; i; 10; i++) {
            var += (" " + i);
         }
         return var;
      }
   }