Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLEncoder Deprecation

 
henri henri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My method appends a String to the end of a URL via the encode() method to enable someone to search the Internet.
init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\Serge\film_titles\build\classes
C:\Documents and Settings\Serge\film_titles\src\film_titles\SE800i.java:280: warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has been deprecated
url += URLEncoder.encode(keyword);
1 warning
compile-single:
run-single:



Is there an equivalent new method to do the same job?

 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic