commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CODEC-230) URLCodec.WWW_FORM_URL should be private
Date Sun, 26 Mar 2017 18:11:41 GMT
Sebb created CODEC-230:
--------------------------

             Summary: URLCodec.WWW_FORM_URL should be private
                 Key: CODEC-230
                 URL: https://issues.apache.org/jira/browse/CODEC-230
             Project: Commons Codec
          Issue Type: Bug
    Affects Versions: 1.10
            Reporter: Sebb


URLCodec.WWW_FORM_URL is mutable and should be made private.
Otherwise subclasses can change the array accidentally or deliberately.

However this would change the API for sub-classes.

A work-round would be to create a parallel private field and keep WWW_FORM_URL as a copy,
but marked deprecated.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message