diff options
author | Mathias Kinzler <mathias.kinzler@sap.com> | 2011-01-28 09:24:20 +0100 |
---|---|---|
committer | Mathias Kinzler <mathias.kinzler@sap.com> | 2011-01-28 09:24:20 +0100 |
commit | c544e96a4cd027a127bc6e6ad5277091b3c0da73 (patch) | |
tree | bd3cd561713b35c5665e531db506a048dced7953 /org.eclipse.jgit | |
parent | 38eec8f4a26935ba9e75bfbdde8a5682e05f338d (diff) | |
download | jgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.tar.gz jgit-c544e96a4cd027a127bc6e6ad5277091b3c0da73.zip |
TransportHttp wrongly uses JDK 6 constructor of IOException
IOException constructor taking Exception as parameter is
new for JDK 6.
Change-Id: Iec349fc7be9e9fbaeb53841894883c47a98a7b29
Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java index 3ec88714f4..5c4e11036c 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java @@ -438,9 +438,9 @@ public class TransportHttp extends HttpTransport implements WalkTransport, final HttpsURLConnection sslConn = (HttpsURLConnection) conn; sslConn.setSSLSocketFactory(ctx.getSocketFactory()); } catch (KeyManagementException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } catch (NoSuchAlgorithmException e) { - throw new IOException(e); + throw new IOException(e.getMessage()); } } |