From: Markus Keller Date: Wed, 26 Sep 2012 22:17:53 +0000 (+0200) Subject: Fix compile error (method not available in 1.5) X-Git-Tag: v2.2.0.201212191850-r~75 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a27c1a6b15c8237739285544ab1e4c56543b2985;p=jgit.git Fix compile error (method not available in 1.5) Change-Id: I07aca821010daca75a66506b9ca738bc8c262abb Signed-off-by: Markus Keller Signed-off-by: Matthias Sohn --- 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 7ae491b38b..15637e7ac3 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);