]> source.dussan.org Git - jgit.git/commitdiff
Fix compile error (method not available in 1.5) 25/7925/2
authorMarkus Keller <markus_keller@ch.ibm.com>
Wed, 26 Sep 2012 22:17:53 +0000 (00:17 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 26 Sep 2012 22:17:53 +0000 (00:17 +0200)
Change-Id: I07aca821010daca75a66506b9ca738bc8c262abb
Signed-off-by: Markus Keller <markus_keller@ch.ibm.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java

index 7ae491b38bb98c1db32a8ec9d0fc4b23ee6232df..15637e7ac30acc76a2971be4075ff2c98f2de375 100644 (file)
@@ -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);