mirror of https://github.com/apache/lucene.git
LUCENE-5950: Remove ecj hacks no longer necessary with current ecj settings
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1640843 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a880507c6
commit
8a24e56be5
|
@ -101,7 +101,7 @@ public abstract class LiveFieldValues<S,T> implements ReferenceManager.RefreshLi
|
|||
if (value == missingValue) {
|
||||
// Deleted but the deletion is not yet reflected in
|
||||
// the reader:
|
||||
return (T)null;
|
||||
return null;
|
||||
} else if (value != null) {
|
||||
return value;
|
||||
} else {
|
||||
|
|
|
@ -113,9 +113,7 @@ public class TestPrefixCodedTerms extends LuceneTestCase {
|
|||
}
|
||||
|
||||
Iterator<Term> expected = superSet.iterator();
|
||||
// NOTE: currenlty using diamond operator on MergedIterator (without explicit Term class) causes
|
||||
// errors on ecj used for javadoc lint
|
||||
Iterator<Term> actual = new MergedIterator<Term>(subs.toArray(new Iterator[0]));
|
||||
Iterator<Term> actual = new MergedIterator<>(subs.toArray(new Iterator[0]));
|
||||
while (actual.hasNext()) {
|
||||
assertTrue(expected.hasNext());
|
||||
assertEquals(expected.next(), actual.next());
|
||||
|
|
|
@ -315,9 +315,7 @@ public class TestGrouping extends LuceneTestCase {
|
|||
BytesRef groupValue = mvalGd.groupValue.exists() ? ((MutableValueStr) mvalGd.groupValue).value.get() : null;
|
||||
groups.add(new GroupDocs<>(Float.NaN, mvalGd.maxScore, mvalGd.totalHits, mvalGd.scoreDocs, groupValue, mvalGd.groupSortValues));
|
||||
}
|
||||
// NOTE: currenlty using diamond operator on TopGroups (without explicit Term class) causes
|
||||
// errors on ecj used for javadoc lint
|
||||
return new TopGroups<BytesRef>(mvalTopGroups.groupSort, mvalTopGroups.withinGroupSort, mvalTopGroups.totalHitCount, mvalTopGroups.totalGroupedHitCount, groups.toArray(new GroupDocs[groups.size()]), Float.NaN);
|
||||
return new TopGroups<>(mvalTopGroups.groupSort, mvalTopGroups.withinGroupSort, mvalTopGroups.totalHitCount, mvalTopGroups.totalGroupedHitCount, groups.toArray(new GroupDocs[groups.size()]), Float.NaN);
|
||||
}
|
||||
fail();
|
||||
return null;
|
||||
|
|
|
@ -59,9 +59,7 @@ public final class MaxFieldValueUpdateProcessorFactory extends FieldValueSubsetU
|
|||
public Collection pickSubset(Collection values) {
|
||||
Collection result = values;
|
||||
try {
|
||||
// NOTE: max must be put into a temp local in order to avoid ecj errors for javadoc lint
|
||||
Object max = Collections.max(values);
|
||||
result = Collections.singletonList(max);
|
||||
result = Collections.singletonList(Collections.max(values));
|
||||
} catch (ClassCastException e) {
|
||||
throw new SolrException
|
||||
(BAD_REQUEST,
|
||||
|
|
|
@ -59,9 +59,7 @@ public final class MinFieldValueUpdateProcessorFactory extends FieldValueSubsetU
|
|||
public Collection pickSubset(Collection values) {
|
||||
Collection result = values;
|
||||
try {
|
||||
// NOTE: min must be put into a temp local in order to avoid ecj errors for javadoc lint
|
||||
Object min = Collections.min(values);
|
||||
result = Collections.singletonList(min);
|
||||
result = Collections.singletonList(Collections.min(values));
|
||||
} catch (ClassCastException e) {
|
||||
throw new SolrException
|
||||
(BAD_REQUEST,
|
||||
|
|
Loading…
Reference in New Issue