[
https://issues.apache.org/jira/browse/LUCENE-8152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16360980#comment-16360980
]
Horatiu Lazu edited comment on LUCENE-8152 at 2/12/18 4:14 PM:
---------------------------------------------------------------
Hmm. You can amend the author of the last commit I believe
git commit --amend --author="Horatiu Lazu <[email protected]>"
>From here:
>[https://stackoverflow.com/questions/3042437/change-commit-author-at-one-specific-commit]
was (Author: mathbunny):
Hmm. You can amend the author of the last commit I believe, `git commit --amend
--author="Horatiu Lazu <[email protected]>"`, from here:
https://stackoverflow.com/questions/3042437/change-commit-author-at-one-specific-commit
> Simplify conditionals in JoinUtil
> ----------------------------------
>
> Key: LUCENE-8152
> URL: https://issues.apache.org/jira/browse/LUCENE-8152
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Horatiu Lazu
> Priority: Trivial
> Attachments: LUCENE-8152.patch, LUCENE-8152.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The following could be simplified, on line 249:
> {code:java}
> int dvDocID = numericDocValues.docID();
> if (dvDocID < doc) {
> dvDocID = numericDocValues.advance(doc);
> }
> long value;
> if (dvDocID == doc) {
> value = numericDocValues.longValue();
> } else {
> value = 0;
> }
> {code}
> To:
> {code:java}
> long value = 0;
> if (numericDocValues.advanceExact(doc)) {
> value = numericDocValues.longValue();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]