提交 b91438b1 编写于 作者: J jglick

No need to cast to HttpURLConnection.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13399 71c3de6d-444a-0410-be80-ed276b4c234a
上级 1ec2624b
...@@ -13,8 +13,8 @@ import java.io.InputStream; ...@@ -13,8 +13,8 @@ import java.io.InputStream;
import java.io.OutputStream; import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.net.HttpURLConnection;
import java.net.URL; import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.ExecutorService; import java.util.concurrent.ExecutorService;
...@@ -74,7 +74,7 @@ public class Launcher { ...@@ -74,7 +74,7 @@ public class Launcher {
private static List<String> parseJnlpArguments(URL slaveJnlpURL) throws ParserConfigurationException, SAXException, IOException, InterruptedException { private static List<String> parseJnlpArguments(URL slaveJnlpURL) throws ParserConfigurationException, SAXException, IOException, InterruptedException {
while (true) { while (true) {
try { try {
HttpURLConnection con = (HttpURLConnection) slaveJnlpURL.openConnection(); URLConnection con = slaveJnlpURL.openConnection();
con.connect(); con.connect();
// check if this URL points to a .jnlp file // check if this URL points to a .jnlp file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册