forked from phoedos/pmd
StringBuffer -> StringBuilder switchovers
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@7331 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -10,14 +10,16 @@ import java.util.Iterator;
|
|||||||
public class VSRenderer implements Renderer {
|
public class VSRenderer implements Renderer {
|
||||||
|
|
||||||
public String render(Iterator<Match> matches) {
|
public String render(Iterator<Match> matches) {
|
||||||
StringBuffer buffer = new StringBuffer(300);
|
|
||||||
|
StringBuilder buffer = new StringBuilder(300);
|
||||||
|
|
||||||
for (Match match; matches.hasNext();) {
|
for (Match match; matches.hasNext();) {
|
||||||
match = matches.next();
|
match = matches.next();
|
||||||
TokenEntry mark;
|
TokenEntry mark;
|
||||||
for (Iterator<TokenEntry> iterator = match.iterator(); iterator.hasNext();) {
|
for (Iterator<TokenEntry> iterator = match.iterator(); iterator.hasNext();) {
|
||||||
mark = iterator.next();
|
mark = iterator.next();
|
||||||
buffer.append(mark.getTokenSrcID());
|
buffer.append(mark.getTokenSrcID());
|
||||||
buffer.append("(" + mark.getBeginLine() +"):");
|
buffer.append('(').append(mark.getBeginLine()).append("):");
|
||||||
buffer.append(" Between lines " + mark.getBeginLine() + " and " + (mark.getBeginLine()+match.getLineCount()) + PMD.EOL);
|
buffer.append(" Between lines " + mark.getBeginLine() + " and " + (mark.getBeginLine()+match.getLineCount()) + PMD.EOL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user