Added java.net.URLEncoder deprecation reference

This commit is contained in:
Erik C. Thauvin 2023-11-01 00:55:04 -07:00 committed by GitHub
parent eae1956ff2
commit 297475c28a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ java -jar lib/build/libs/urlencoder-*.jar -d "a%20test%20%26" # -> a test &
## Why not simply use `java.net.URLEncoder`?
Apart for being quite inefficient, some URL components encoded with `URLEncoder.encode` might not be able to be properly decoded.
Apart for being quite inefficient and [deprecated](https://inside.java/2023/02/15/quality-heads-up/) as of JDK 20, some URL components encoded with `URLEncoder.encode` might not be able to be properly decoded.
For example, a simply search query such as: