[
https://issues.apache.org/jira/browse/HADOOP-6471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797775#action_12797775
]
Kay Kay commented on HADOOP-6471:
---------------------------------
{quote}
Changing the return type of a public method is still an incompatible change,
however. The old method needs to be deprecated first, before removing it. The
new method would have to have a different name since methods can't be
overloaded on return type alone.
{quote}
Understandable. Will post a revised one with the deprecated marker as well.
> StringBuffer -> StringBuilder - conversion of references as necessary
> ---------------------------------------------------------------------
>
> Key: HADOOP-6471
> URL: https://issues.apache.org/jira/browse/HADOOP-6471
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Kay Kay
> Fix For: 0.21.0
>
> Attachments: HADOOP-6471.patch, HADOOP-6471.patch
>
>
> Across hadoop-common codebase, a good number of StringBuffer-s being used
> are actually candidates for StringBuilders , since the reference does not
> escape the scope of the method and no concurrency is needed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.