[slf4j-dev] [qos-ch/slf4j] a724fb: Fix rendering of arrays in ToStringHelper.renderAr...

Matt Bishop matt at thebishops.org
Mon Oct 6 19:17:38 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/qos-ch/slf4j
  Commit: a724fb3956959071c6a9100cc3e718f368d9eec1
      https://github.com/qos-ch/slf4j/commit/a724fb3956959071c6a9100cc3e718f368d9eec1
  Author: Karel Rank <karel.rank at gmail.com>
  Date:   2014-10-06 (Mon, 06 Oct 2014)

  Changed paths:
    M slf4j-ext/src/main/java/org/slf4j/instrumentation/ToStringHelper.java

  Log Message:
  -----------
  Fix rendering of arrays in ToStringHelper.renderArray

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.


  Commit: 16ded72f7bfcb98d924d6b133f2b3aeb0be66e0f
      https://github.com/qos-ch/slf4j/commit/16ded72f7bfcb98d924d6b133f2b3aeb0be66e0f
  Author: Matt Bishop <matt at thebishops.org>
  Date:   2014-10-06 (Mon, 06 Oct 2014)

  Changed paths:
    M slf4j-ext/src/main/java/org/slf4j/instrumentation/ToStringHelper.java

  Log Message:
  -----------
  Merge pull request #83 from karl82/master

Fix rendering of arrays in ToStringHelper.renderArray


Compare: https://github.com/qos-ch/slf4j/compare/89c07b613b5c...16ded72f7bfc


More information about the slf4j-dev mailing list