Browse Source

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>
tags/v0.11.1
Mathias Kinzler 13 years ago
parent
commit
c544e96a4c

+ 2
- 2
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java View File

@@ -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());
}
}


Loading…
Cancel
Save