Avoid concatenating nonliterals in a Str...

Avoid concatenating nonliterals in a StringBuffer/StringBuilder constructor or append().

Is this rule useful?
4 votesVote for this rule!

  • Sharebar

Avoid concatenating non-literals in a StringBuffer constructor or append() since intermediate buffers will
need to be be created and destroyed by the JVM.

Example(s):

(From PMD : doc, Java)

Tags: , , , , , , ,
Available within Scertify™

Leave a Comment

Run the Code Refactory
Scertify™ Professional is an Eclipse plugin dedicated to analyze, control and correction of code quality defects, through computer-assisted code refactoring. It includes +1,600 coding rule controls and several rules for automated-refactoring).

Who we are?

Tocea provides Development Teams with innovative solutions enabling them to continuously control and improve the quality and integrity of their applications. We support developers, architects and project managers in their permanent effort to tackle IT debt and costs, by providing them with unique information on Code & Architecture Quality and some exclusive computer-aided refactoring features.
Visit Tocea.com

LoadingRetrieving latest tweet...

Back to Top

2014 © All rights reserved, Tocea