[
https://issues.apache.org/jira/browse/CONNECTORS-932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13974987#comment-13974987
]
Ahmet Arslan commented on CONNECTORS-932:
-----------------------------------------
r1588711 adds license headers to {{org.apache.manifoldcf.core.util.URLDecoder}}
and {{org.apache.manifoldcf.core.util.URLDecoder}}
> 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
> Assignee: Ahmet Arslan
> Fix For: ManifoldCF 1.7
>
> Attachments: CONNECTORS-932.patch
>
>
> 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)