From befeff16e7744fee1b439d269f51eb42c8f2fb93 Mon Sep 17 00:00:00 2001 From: Mathias Kinzler Date: Mon, 20 Dec 2010 16:52:52 +0100 Subject: [PATCH] Fix JDK 6 Usage of String.getBytes(Charset) Change-Id: I619b00d8a3b0770c9fd1dc3314794f915ea80604 Signed-off-by: Mathias Kinzler --- .../tst/org/eclipse/jgit/storage/file/T0003_Basic.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 376b985d7..757af2eb1 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);