Skip to content

Commit

Permalink
Throw UnsupportedOperationException in unused methods (opensearch-pro…
Browse files Browse the repository at this point in the history
…ject#15446) (opensearch-project#15449)

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 <[email protected]>
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.