Author: maartenc Date: Thu Nov 27 14:20:57 2008 New Revision: 721304 URL: http://svn.apache.org/viewvc?rev=721304&view=rev Log: Removed unnecessary cast the HttpUrlConnection
Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java?rev=721304&r1=721303&r2=721304&view=diff ============================================================================== --- ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java (original) +++ ant/ivy/core/trunk/src/java/org/apache/ivy/util/url/BasicURLHandler.java Thu Nov 27 14:20:57 2008 @@ -104,11 +104,9 @@ if (status == HttpStatus.SC_PROXY_AUTHENTICATION_REQUIRED) { Message.warn("Your proxy requires authentication."); } else if (String.valueOf(status).startsWith("4")) { - Message.verbose("CLIENT ERROR: " - + ((HttpURLConnection) con).getResponseMessage() + " url=" + url); + Message.verbose("CLIENT ERROR: " + con.getResponseMessage() + " url=" + url); } else if (String.valueOf(status).startsWith("5")) { - Message.error("SERVER ERROR: " + ((HttpURLConnection) con).getResponseMessage() - + " url=" + url); + Message.error("SERVER ERROR: " + con.getResponseMessage() + " url=" + url); } return false; }