commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Waldhoff, Rodney" <rwald...@us.britannica.com>
Subject RE: Build Warning for HttpClient
Date Wed, 01 May 2002 21:02:30 GMT
encode(String,String) only exists in JDK 1.4.  HttpClient currently supports
JDK 1.2+.  Making this deprecation warning go away probably wouldn't justify
dropping 1.2 and 1.3 support.

I wonder why this is using URLEncoder at all though, it may be better to use
URIUtil.  Or even better, since we're just creating a temp file name here,
just use File.createTempFile.


-----Original Message-----
From: Amir D. Kolsky [mailto:amir@kolsky.com]
Sent: Wednesday, May 01, 2002 3:43 PM
To: Jakarta Commons Developers List
Subject: Build Warning for HttpClient


encode(String) has been deprecated in favor of encode(String,String)...
can we fix this warning?

    [javac] Compiling 40 source files to
V:\Apache\jakarta-commons\httpclient\target\classes
    [javac]
V:\Apache\jakarta-commons\httpclient\src\java\org\apache\commons\httpclient\
methods\GetMethod.java:368: warning: encode(java.lang.String) in
java.net.URLEncoder has been deprecated
    [javac]                     String encodedPath =
URLEncoder.encode(getPath());
    [javac]                                                    ^
    [javac] 1 warning


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message