lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2438) BytesRef improvements
Date Mon, 03 May 2010 18:07:56 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12863433#action_12863433
] 

Yonik Seeley commented on LUCENE-2438:
--------------------------------------

I've added javadoc that defines result.offset to be 0 after the UTF16toUTF8 methods.
I also clarified that the byte[] one passes in is directly referenced instead of copied...
which implies that BytesRef(byte[]) will cause offset to be 0.

> BytesRef improvements
> ---------------------
>
>                 Key: LUCENE-2438
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2438
>             Project: Lucene - Java
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: Yonik Seeley
>         Attachments: LUCENE-2438.patch, LUCENE-2438.patch, LUCENE-2438.patch
>
>
> Make BytesRef comparable, document that byte[] should not be null, remove explicit null
check + allocation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message