Browse Source

Fix JDK 6 Usage of String.getBytes(Charset)

Change-Id: I619b00d8a3b0770c9fd1dc3314794f915ea80604
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
stable-0.11
Mathias Kinzler 14 years ago
parent
commit
befeff16e7
  1. 3
      org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_Basic.java

3
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(); final ObjectInserter oi = db.newObjectInserter();
try { try {
final ObjectId blobId = oi.insert(Constants.OBJ_BLOB, 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(); TreeFormatter fmt = new TreeFormatter();
fmt.append("i-am-a-file", FileMode.REGULAR_FILE, blobId); fmt.append("i-am-a-file", FileMode.REGULAR_FILE, blobId);
treeId = oi.insert(fmt); treeId = oi.insert(fmt);

Loading…
Cancel
Save