[
https://issues.apache.org/jira/browse/CONFIGURATION-515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Oliver Heger resolved CONFIGURATION-515.
----------------------------------------
Resolution: Fixed
Fix Version/s: 2.0
The methods {{escapeKey()}}, {{escapeValue()}}, and {{escapeBackslashs()}} (the
latter was renamed from {{handleBackslashs()}}) are now *protected*. I also
moved the call to {{StringEscapeUtils.escapeJava()}} into {{escapeValue()}} so
that {{escapeBackslashs()}} actually only deals with backslashs.
Fixed in subversion in revision 1464943.
> Make private methods in PropertiesConfiguration.PropertiesWriter protected
> --------------------------------------------------------------------------
>
> Key: CONFIGURATION-515
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-515
> Project: Commons Configuration
> Issue Type: Improvement
> Affects Versions: 1.9
> Reporter: Chris Seieroe
> Priority: Minor
> Fix For: 2.0
>
>
> I believe in version 1.7 the IOFactory was added to PropertiesConfiguration
> to make it easy to replace the reader and writer. The default reader,
> PropertiesReader, does not have any private methods. It has protected methods
> to set the property name, separator, and value. The same cannot be said for
> the writer, PropertiesWriter. It has private methods like escapeKey,
> escapeValue, handleBackslashs, and makeSingleLineValue. It makes extending
> this class difficult. Can those private methods be turned protected?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira