Skip to content

Commit 3af0d9a

Browse files
committed
Remove unnecessary suppression of unchecked warnings in new loader.
1 parent f759507 commit 3af0d9a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

jvector-examples/src/main/java/io/github/jbellis/jvector/example/benchmarks/datasets/DataSetLoaderSimpleMFD.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ public DataSetLoaderSimpleMFD(String catalogUrl, String localPath, boolean check
220220
/// fetched and compared; a warning is logged if they differ.
221221
/// Ignored when catalogUrl is null/empty.
222222
/// @param metadata the metadata reader for resolving dataset properties
223-
@SuppressWarnings("unchecked")
224223
public DataSetLoaderSimpleMFD(String catalogUrl, String localPath, boolean checkForUpdates, DataSetMetadataReader metadata) {
225224
this.metadata = metadata;
226225
this.httpClient = HttpClient.newBuilder()
@@ -359,7 +358,6 @@ private void scanForCatalogs(Path rootDir, Map<String, CatalogEntry> target) {
359358
/// When {@code _include} is present, its value (after env var expansion) is treated as a
360359
/// remote catalog URL. The remote entries are fetched and merged with the local defaults,
361360
/// so a single local file can act as a thin wrapper around a remote catalog.
362-
@SuppressWarnings("unchecked")
363361
private void loadCatalogEntries(Path catalogFile, Map<String, CatalogEntry> target) {
364362
var raw = loadCatalogFromFile(catalogFile);
365363
if (raw.isEmpty()) return;
@@ -570,7 +568,6 @@ private void ensureFileAvailable(String filename, Path cacheDir, String baseUrl)
570568
// REMOTE CATALOG OPERATIONS
571569
// ========================================================================================
572570

573-
@SuppressWarnings("unchecked")
574571
private Map<String, Map<String, String>> fetchRemoteCatalogRaw(String catalogUrl) {
575572
try {
576573
Path tempFile = Files.createTempFile("catalog-", ".tmp");

0 commit comments

Comments
 (0)