From b08f57d7c2e3bec40c6e672d0142dfb385c5ff34 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 18 Aug 2014 15:04:10 +0000 Subject: [PATCH] LUCENE-5892: Missed the covariant return type. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1618628 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/util/CharsRefBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/util/CharsRefBuilder.java b/lucene/core/src/java/org/apache/lucene/util/CharsRefBuilder.java index 1c2e102ba86..b617306692d 100644 --- a/lucene/core/src/java/org/apache/lucene/util/CharsRefBuilder.java +++ b/lucene/core/src/java/org/apache/lucene/util/CharsRefBuilder.java @@ -68,7 +68,7 @@ public class CharsRefBuilder implements Appendable { } @Override - public Appendable append(CharSequence csq) { + public CharsRefBuilder append(CharSequence csq) { if (csq == null) { return append(NULL_STRING); } @@ -76,7 +76,7 @@ public class CharsRefBuilder implements Appendable { } @Override - public Appendable append(CharSequence csq, int start, int end) { + public CharsRefBuilder append(CharSequence csq, int start, int end) { if (csq == null) { return append(NULL_STRING); } @@ -88,7 +88,7 @@ public class CharsRefBuilder implements Appendable { } @Override - public Appendable append(char c) { + public CharsRefBuilder append(char c) { grow(ref.length + 1); setCharAt(ref.length++, c); return this;