Ahmet Arslan created CONNECTORS-932:
---------------------------------------
Summary: Avoid UnsupportedEncodingException handling
Key: CONNECTORS-932
URL: https://issues.apache.org/jira/browse/CONNECTORS-932
Project: ManifoldCF
Issue Type: Improvement
Affects Versions: ManifoldCF 1.6
Reporter: Ahmet Arslan
Fix For: ManifoldCF 1.7
ManifoldCF extensively uses following two methods in several places.
* {{java.net.URLDecoder.decode(String s, "UTF-8")}}
* {{java.net.URLDecoder.decode(String s, "UTF-8")}}
They throws checked exception although every implementation of the Java
platform is required to support UTF-8. try catch blocks looks cumbersome with
this ShouldNeverHappenException.
Lets deals with {{UnsupportedEncodingException}} handling madness caused by by
introducing two new utility classes :
* org.apache.manifoldcf.core.util.URLDecoder
* org.apache.manifoldcf.core.util.URLEncoder
--
This message was sent by Atlassian JIRA
(v6.2#6252)