MohamedAbdo37 commited on
Commit ·
312af75
1
Parent(s): 9a24ba2
Refactor getSimilarIndices method to remove unnecessary Exception handling
Browse files
src/main/java/edu/alexu/fitfinder/service/SearchService.java
CHANGED
|
@@ -37,8 +37,8 @@ public class SearchService {
|
|
| 37 |
this.webClient = WebClient.builder().baseUrl("https://fitfinder-ai-service.hf.space").build();
|
| 38 |
}
|
| 39 |
|
| 40 |
-
|
| 41 |
-
throws InvalidInputException
|
| 42 |
|
| 43 |
// Validate mask
|
| 44 |
if (searchInfo.getMask_json() == null) throw new InvalidInputException("Mask couldn't be null");
|
|
|
|
| 37 |
this.webClient = WebClient.builder().baseUrl("https://fitfinder-ai-service.hf.space").build();
|
| 38 |
}
|
| 39 |
|
| 40 |
+
public List<Long> getSimilarIndices(SearchRequestDTO searchInfo)
|
| 41 |
+
throws InvalidInputException {
|
| 42 |
|
| 43 |
// Validate mask
|
| 44 |
if (searchInfo.getMask_json() == null) throw new InvalidInputException("Mask couldn't be null");
|