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>
stable-0.11
Mathias Kinzler 14 years ago
parent
commit
c544e96a4c
  1. 4
      org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java

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

Loading…
Cancel
Save