Hi Tonny.

Tonny Kohar:
> When building or compiling batik, there are always deprecated info
> [warning] regarding URLEncoder encode and decode. To get rid of it
> simply just use "UTF-8" or the default platform encoding.
> 
> According to Javadoc the URLEncoder.encode(string) is deprecated and
> replaced with URLEncode.encode(string,string)
> 
> /org/apache/batik/apps/svgbrowser/Main.java:960 (line)
> just change to
> (URLEncoder.encode(lastVisited.get(i).toString(), "UTF-8"));
> 
> org/apache/batik/apps/svgbrowser/Main.java:1013 (line)
> just change to 
> lastVisited.addElement(URLDecoder.decode(st.nextToken(), "UTF-8"));

Yep, but unfortunately the URLEncoder.encode(String,String) and
URLDecoder.encode(String,String) methods were introduced in Java 1.4,
and we are aiming for Java 1.3 support.  After the release we will
probably target Java 1.4, so we’ll definitely replace those method calls
with the non-deprecated ones then.

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to