From 0bd1fcf488e84aee93a4a0d40dd40b51fac68840 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 7 Dec 2011 17:13:42 +0000 Subject: [PATCH] LUCENE-3624: throw exception for MultiSortedSource instead of returning null git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1211542 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/index/values/IndexDocValues.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lucene/src/java/org/apache/lucene/index/values/IndexDocValues.java b/lucene/src/java/org/apache/lucene/index/values/IndexDocValues.java index 81896472482..927a8dfb813 100644 --- a/lucene/src/java/org/apache/lucene/index/values/IndexDocValues.java +++ b/lucene/src/java/org/apache/lucene/index/values/IndexDocValues.java @@ -210,18 +210,18 @@ public abstract class IndexDocValues implements Closeable { /** * Returns the internal array representation iff this {@link Source} uses an - * array as its inner representation, otherwise null. + * array as its inner representation, otherwise UOE. */ public Object getArray() { - return null; + throw new UnsupportedOperationException("getArray is not supported"); } /** * If this {@link Source} is sorted this method will return an instance of - * {@link SortedSource} otherwise null + * {@link SortedSource} otherwise UOE */ public SortedSource asSortedSource() { - return null; + throw new UnsupportedOperationException("asSortedSource is not supported"); } }