mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-20 07:22:32 +00:00
[FIXED HUDSON-2625] JDK6 dependency
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13263 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
37139b9ef4
commit
79ffdb42d4
1 file changed
+3
-3
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user