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)

These methods infinitely recurse as currently implemented. This change
makes them throw UnsupportedOperationException similar to many other
methods in this class.

Signed-off-by: Andrew Ross <[email protected]>
  • Loading branch information
andrross authored and dk2k committed Oct 17, 2024
1 parent c8b1dcc commit c0fc003
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 c0fc003

Please sign in to comment.