aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2010-12-20 10:52:52 (EST)
committerMathias Kinzler2010-12-20 10:52:52 (EST)
commitbefeff16e7744fee1b439d269f51eb42c8f2fb93 (patch)
tree31da35cb720cfbde4d267d7f12b60789746a04c0
parent89a4dcf71ff3326aa6313b3a988b7721c3470858 (diff)
downloadjgit-befeff16e7744fee1b439d269f51eb42c8f2fb93.zip
jgit-befeff16e7744fee1b439d269f51eb42c8f2fb93.tar.gz
jgit-befeff16e7744fee1b439d269f51eb42c8f2fb93.tar.bz2
Fix JDK 6 Usage of String.getBytes(Charset)refs/changes/58/2158/1
Change-Id: I619b00d8a3b0770c9fd1dc3314794f915ea80604 Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java
index 376b985..757af2e 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java
@@ -535,7 +535,8 @@ public class T0003_Basic extends SampleDataRepositoryTestCase {
final ObjectInserter oi = db.newObjectInserter();
try {
final ObjectId blobId = oi.insert(Constants.OBJ_BLOB,
- "and this is the data in me\n".getBytes(Constants.CHARSET));
+ "and this is the data in me\n".getBytes(Constants.CHARSET
+ .name()));
TreeFormatter fmt = new TreeFormatter();
fmt.append("i-am-a-file", FileMode.REGULAR_FILE, blobId);
treeId = oi.insert(fmt);