提交 79ffdb42 编写于 作者: S sogabe

[FIXED HUDSON-2625] JDK6 dependency

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13263 71c3de6d-444a-0410-be80-ed276b4c234a
上级 37139b9e
......@@ -10,7 +10,7 @@ import hudson.FilePath;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.io.UnsupportedEncodingException;
import java.net.URL;
import org.apache.commons.io.IOUtils;
......@@ -29,9 +29,9 @@ public class SingleFileSCM extends NullSCM {
this.contents = contents;
}
public SingleFileSCM(String path, String contents) {
public SingleFileSCM(String path, String contents) throws UnsupportedEncodingException {
this.path = path;
this.contents = contents.getBytes(Charset.forName("UTF-8"));
this.contents = contents.getBytes("UTF-8");
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册