summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorMarkus Keller2012-09-26 18:17:53 (EDT)
committer Matthias Sohn2012-09-26 18:17:53 (EDT)
commita27c1a6b15c8237739285544ab1e4c56543b2985 (patch)
tree113b0bcfc71f2d4e6e9691435b166868785ac76b
parent0b19db77cb77925b55777128fe12d8cbe80fb5bc (diff)
downloadjgit-a27c1a6b15c8237739285544ab1e4c56543b2985.zip
jgit-a27c1a6b15c8237739285544ab1e4c56543b2985.tar.gz
jgit-a27c1a6b15c8237739285544ab1e4c56543b2985.tar.bz2
Fix compile error (method not available in 1.5)refs/changes/25/7925/2
Change-Id: I07aca821010daca75a66506b9ca738bc8c262abb Signed-off-by: Markus Keller <markus_keller@ch.ibm.com> Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileBasedConfig.java2
1 files changed, 1 insertions, 1 deletions
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 7ae491b..15637e7 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);