Skip to content

Commit c0fc003

Browse files
andrrossdk2k
authored andcommitted
Throw UnsupportedOperationException in unused methods (opensearch-project#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 <andrross@amazon.com>
1 parent c8b1dcc commit c0fc003

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/main/java/org/opensearch/index/engine/TranslogLeafReader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,13 +264,13 @@ public CacheHelper getReaderCacheHelper() {
264264
}
265265

266266
@Override
267-
public FloatVectorValues getFloatVectorValues(String field) throws IOException {
268-
return getFloatVectorValues(field);
267+
public FloatVectorValues getFloatVectorValues(String field) {
268+
throw new UnsupportedOperationException();
269269
}
270270

271271
@Override
272-
public ByteVectorValues getByteVectorValues(String field) throws IOException {
273-
return getByteVectorValues(field);
272+
public ByteVectorValues getByteVectorValues(String field) {
273+
throw new UnsupportedOperationException();
274274
}
275275

276276
@Override

0 commit comments

Comments
 (0)