Rely upon Constants.CHARSET over Constants.CHARACTER_ENCODING
commit9ce42476d4a0fc6ef8b6693ad4be092e80172f31
authorShawn O. Pearce <spearce@spearce.org>
Tue, 12 Aug 2008 01:07:51 +0000 (11 18:07 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Thu, 14 Aug 2008 17:33:19 +0000 (14 19:33 +0200)
tree4c7f03314082c548c5c8fd5f6717ebf36ec9c675
parentff18ea72691de0e0b2da2e3dc04069d1b076c840
Rely upon Constants.CHARSET over Constants.CHARACTER_ENCODING

This avoids the UnsupportedEncodingException error which we know
must not fail on a JRE that supports jgit.  We have to have the
stock UTF-8 encoding available for basic operation.

In some cases we can also avoid an unnecessary copy.  Some code
paths in the byte[]->String utility methods in the Sun JRE seem
to copy the input byte[] prior to calling the character set for
the conversion.  This copy is unnecessary.

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/lib/ObjectWriter.java
org.spearce.jgit/src/org/spearce/jgit/lib/RefDatabase.java
org.spearce.jgit/src/org/spearce/jgit/lib/RepositoryConfig.java
org.spearce.jgit/src/org/spearce/jgit/transport/PacketLineIn.java
org.spearce.jgit/src/org/spearce/jgit/transport/SideBandInputStream.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportBundle.java
org.spearce.jgit/src/org/spearce/jgit/transport/WalkPushConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/WalkRemoteObjectDatabase.java
org.spearce.jgit/src/org/spearce/jgit/treewalk/TreeWalk.java
org.spearce.jgit/src/org/spearce/jgit/treewalk/filter/PathFilter.java