Skip to content

Commit

Permalink
Fix rendering of arrays in ToStringHelper.renderArray
Browse files Browse the repository at this point in the history
StringBuilder or StringBuffer doesn't have constructor for char. See below

Reports any new StringBuffer() and new StringBuilder() calls with an argument with type char. Such an argument is silently casted to an integer used to specify the length of the buffer. Usually this is not what was intended.
  • Loading branch information
karl82 committed Oct 6, 2014
1 parent 89c07b6 commit a724fb3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ public class ToStringHelper {
/**
* Prefix to use at the start of the representation. Always used.
*/
private static final char ARRAY_PREFIX = '[';
private static final String ARRAY_PREFIX = "[";

/**
* Suffix to use at the end of the representation. Always used.
Expand Down

0 comments on commit a724fb3

Please sign in to comment.