FindBugs: Fix use of byte[].toString() in error messages
commit39df8016f11b416535aa5218bd62f65526a1f1d5
authorShawn O. Pearce <spearce@spearce.org>
Mon, 4 May 2009 23:30:46 +0000 (4 16:30 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 5 May 2009 20:59:19 +0000 (5 22:59 +0200)
treeaf8f38b2f40e5b0f5c4ed49e8ba3147f41a8d7e9
parentc2b5effe590304c4175d4682d3934581cdf79bdb
FindBugs: Fix use of byte[].toString() in error messages

We meant to use typeString here, not encodedTypeString, as we want
a human-readable string form of the object type for display into
an exception message.  FindBugs caught us using a byte[] here and
not a string, resulting in a useless portion of the message text.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/IndexPack.java
org.spearce.jgit/src/org/spearce/jgit/transport/WalkFetchConnection.java