You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2017/09/05 19:24:15 UTC
[5/6] lucene-solr:branch_7x: LUCENE-7956: Make the start offset of
codePointBefore explicit.
LUCENE-7956: Make the start offset of codePointBefore explicit.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d8a5d6cc
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d8a5d6cc
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d8a5d6cc
Branch: refs/heads/branch_7x
Commit: d8a5d6cc3a78fef532c9161b29a27cfc609f7bf5
Parents: 60e6cca
Author: Adrien Grand <jp...@gmail.com>
Authored: Tue Sep 5 21:21:51 2017 +0200
Committer: Adrien Grand <jp...@gmail.com>
Committed: Tue Sep 5 21:22:30 2017 +0200
----------------------------------------------------------------------
.../org/apache/lucene/analysis/icu/ICUNormalizer2CharFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d8a5d6cc/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUNormalizer2CharFilter.java
----------------------------------------------------------------------
diff --git a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUNormalizer2CharFilter.java b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUNormalizer2CharFilter.java
index c529f74..07b1c88 100644
--- a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUNormalizer2CharFilter.java
+++ b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/ICUNormalizer2CharFilter.java
@@ -110,7 +110,7 @@ public final class ICUNormalizer2CharFilter extends BaseCharFilter {
break;
}
- final int lastCodePoint = Character.codePointBefore(tmpBuffer.getBuffer(), tmpBuffer.getLength());
+ final int lastCodePoint = Character.codePointBefore(tmpBuffer.getBuffer(), tmpBuffer.getLength(), 0);
if (normalizer.isInert(lastCodePoint)) {
// we require an inert char so that we can normalize content before and
// after this character independently