Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Not A Problem
-
5.1
-
None
-
None
Description
Simple code example:
public static void main(String[] args) { System.out.println(URLEncodedUtils.parse((String) null, StandardCharsets.UTF_8)); // [] System.out.println(WWWFormCodec.parse((String) null, StandardCharsets.UTF_8)); // null }
Basically when the input String is null, URLEncodedUtils.parse returns an empty list and WWWFormCodec.parse returns null. It's by no means a big deal, but it did catch me off guard, because I expected WWWFormCodec to be a drop-in replacement. If this was intended, then please disregard this issue.