From a27c1a6b15c8237739285544ab1e4c56543b2985 Mon Sep 17 00:00:00 2001 From: Markus Keller Date: Thu, 27 Sep 2012 00:17:53 +0200 Subject: [PATCH] Fix compile error (method not available in 1.5) Change-Id: I07aca821010daca75a66506b9ca738bc8c262abb Signed-off-by: Markus Keller Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/storage/file/FileBasedConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java index 7ae491b38..15637e7ac 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java @@ -192,7 +192,7 @@ public class FileBasedConfig extends StoredConfig { bos.write(0xEF); bos.write(0xBB); bos.write(0xBF); - bos.write(text.getBytes(RawParseUtils.UTF8_CHARSET)); + bos.write(text.getBytes(RawParseUtils.UTF8_CHARSET.name())); out = bos.toByteArray(); } else { out = Constants.encode(text);