mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
Convert to legacy Throwable.initCause()
This commit is contained in:
@@ -1152,7 +1152,7 @@ public class GHRepository extends GHObject {
|
||||
try {
|
||||
payload = content.getBytes("UTF-8");
|
||||
} catch (UnsupportedEncodingException ex) {
|
||||
throw new IOException("UTF-8 encoding is not supported", ex);
|
||||
throw (IOException) new IOException("UTF-8 encoding is not supported").initCause(ex);
|
||||
}
|
||||
return createContent(payload, commitMessage, path, branch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user