Skip to content

Commit

Permalink
Added java.net.URLEncoder deprecation reference
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed Nov 1, 2023
1 parent ee35984 commit b9791dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ java -jar urlencoder-app/build/libs/urlencoder-*all.jar -d "a%20test%20%26" # ->

## 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 simple search query such as:

Expand Down

0 comments on commit b9791dc

Please sign in to comment.