Skip to content

Commit

Permalink
Throw UnsupportedOperationException in unused methods (#15446) (#15449)
Browse files Browse the repository at this point in the history
These methods infinitely recurse as currently implemented. This change
makes them throw UnsupportedOperationException similar to many other
methods in this class.


(cherry picked from commit 20ebe6e)

Signed-off-by: Andrew Ross <andrross@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent c63ad5a commit d7e7d94
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ public CacheHelper getReaderCacheHelper() {
}

@Override
public FloatVectorValues getFloatVectorValues(String field) throws IOException {
return getFloatVectorValues(field);
public FloatVectorValues getFloatVectorValues(String field) {
throw new UnsupportedOperationException();
}

@Override
public ByteVectorValues getByteVectorValues(String field) throws IOException {
return getByteVectorValues(field);
public ByteVectorValues getByteVectorValues(String field) {
throw new UnsupportedOperationException();
}

@Override
Expand Down

0 comments on commit d7e7d94

Please sign in to comment.