From bfa14663929c2096d25e6d3b2150e7a3dcddd5e9 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Tue, 6 Aug 2024 15:45:58 +0200 Subject: [PATCH] Polishing. --- mongodb/fragment-spi/atlas-api/pom.xml | 2 +- .../com/example/spi/mongodb/atlas/AtlasRepositoryFragment.java | 1 - mongodb/fragment-spi/sample/pom.xml | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mongodb/fragment-spi/atlas-api/pom.xml b/mongodb/fragment-spi/atlas-api/pom.xml index e57d8931e..247f26723 100644 --- a/mongodb/fragment-spi/atlas-api/pom.xml +++ b/mongodb/fragment-spi/atlas-api/pom.xml @@ -4,7 +4,7 @@ org.springframework.data.examples - spring-data-mongodb-examples + spring-data-mongodb-fragment-spi 2.0.0.BUILD-SNAPSHOT diff --git a/mongodb/fragment-spi/atlas-api/src/main/java/com/example/spi/mongodb/atlas/AtlasRepositoryFragment.java b/mongodb/fragment-spi/atlas-api/src/main/java/com/example/spi/mongodb/atlas/AtlasRepositoryFragment.java index 4e2e38a6c..cba0e3c12 100644 --- a/mongodb/fragment-spi/atlas-api/src/main/java/com/example/spi/mongodb/atlas/AtlasRepositoryFragment.java +++ b/mongodb/fragment-spi/atlas-api/src/main/java/com/example/spi/mongodb/atlas/AtlasRepositoryFragment.java @@ -40,7 +40,6 @@ public AtlasRepositoryFragment(@Autowired MongoOperations mongoOperations) { public List vectorSearch(String index, String path, List vector, Limit limit) { RepositoryMethodContext metadata = RepositoryMethodContext.currentMethod(); - Objects.requireNonNull(metadata); Class domainType = metadata.getRepository().getDomainType(); System.out.println("domainType: " + domainType); diff --git a/mongodb/fragment-spi/sample/pom.xml b/mongodb/fragment-spi/sample/pom.xml index 0312e1f93..7fd3bf18b 100644 --- a/mongodb/fragment-spi/sample/pom.xml +++ b/mongodb/fragment-spi/sample/pom.xml @@ -4,7 +4,7 @@ org.springframework.data.examples - spring-data-mongodb-examples + spring-data-mongodb-fragment-spi 2.0.0.BUILD-SNAPSHOT