You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is used almost only for its static methods, however is itself a MultiMap and can decode a query string into itself, which is only used in tests.
The static methods return void but require a MultiMap parameter that is always created anew, but it is used as a lock inside the UrlEncoded methods, which is completely unnecessary.
The whole locking of this class should be removed, and the static methods of this class should return a MultiMap or a Map.
Also, it should just be a static utility class, rather than inheriting from MultiMap.
The text was updated successfully, but these errors were encountered:
* Issue #5093 Static UrlEncoded
Updated UrlEncoded to static only class with no synchronization
* Fixed additional tests
* fixed formatting
Signed-off-by: gregw <[email protected]>
Spawned by #5083.
Jetty version
9.4.x
Description
UrlEncoded
needs a serious review.It is used almost only for its
static
methods, however is itself aMultiMap
and can decode a query string into itself, which is only used in tests.The
static
methods return void but require aMultiMap
parameter that is always created anew, but it is used as a lock inside theUrlEncoded
methods, which is completely unnecessary.The whole locking of this class should be removed, and the
static
methods of this class should return aMultiMap
or aMap
.Also, it should just be a static utility class, rather than inheriting from
MultiMap
.The text was updated successfully, but these errors were encountered: