[
https://issues.apache.org/jira/browse/LUCENE-3277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060202#comment-13060202
]
Robert Muir commented on LUCENE-3277:
-------------------------------------
the same grow() issue happens in IntsRef.copy and LongsRef.copy.
I think we should fix this, and in general, i think these guys should have
consistent APIs.
> CharsRef has confusing methods/needs tests/bugs
> -----------------------------------------------
>
> Key: LUCENE-3277
> URL: https://issues.apache.org/jira/browse/LUCENE-3277
> Project: Lucene - Java
> Issue Type: Bug
> Reporter: Robert Muir
>
> While looking at LUCENE-3233, i noticed a few things:
> * lots of internal methods (e.g. copy) use grow(). I don't think they should
> do this. CharsRef should work like BytesRef, i don't think it needs to be a
> stringbuffer. i think its ok to expose a public grow() method like we did for
> bytesref though.
> * the append() method is totally confusing, and doesnt make sense compared to
> BytesRef, copy() might also have issues.
> * a lot of these methods are unused, we should at least add tests for them,
> or remove ones we don't need.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]