diff --git a/src/main/java/org/apache/solr/mcp/server/collection/CollectionService.java b/src/main/java/org/apache/solr/mcp/server/collection/CollectionService.java index 011d278e..b54dedb6 100644 --- a/src/main/java/org/apache/solr/mcp/server/collection/CollectionService.java +++ b/src/main/java/org/apache/solr/mcp/server/collection/CollectionService.java @@ -573,7 +573,7 @@ public SolrMetrics getCollectionStats( * @see IndexStats * @see LukeResponse */ - public IndexStats buildIndexStats(LukeResponse lukeResponse) { + IndexStats buildIndexStats(LukeResponse lukeResponse) { NamedList indexInfo = lukeResponse.getIndexInfo(); // Extract index information using helper methods @@ -614,7 +614,7 @@ public IndexStats buildIndexStats(LukeResponse lukeResponse) { * @see QueryStats * @see QueryResponse */ - public QueryStats buildQueryStats(QueryResponse response) { + QueryStats buildQueryStats(QueryResponse response) { return new QueryStats(response.getQTime(), response.getResults().getNumFound(), response.getResults().getStart(), response.getResults().getMaxScore()); @@ -669,7 +669,7 @@ public QueryStats buildQueryStats(QueryResponse response) { * @see #extractCacheStats(NamedList) * @see #isCacheStatsEmpty(CacheStats) */ - public @Nullable CacheStats getCacheMetrics(String collection) throws SolrServerException, IOException { + @Nullable CacheStats getCacheMetrics(String collection) throws SolrServerException, IOException { String actualCollection = extractCollectionName(collection); if (!validateCollectionExists(actualCollection)) { @@ -785,7 +785,7 @@ private CacheStats extractCacheStats(NamedList coreMetrics) { * @see #fetchFlatHandlerInfo(String, String, String) * @see #isHandlerStatsEmpty(HandlerStats) */ - public @Nullable HandlerStats getHandlerMetrics(String collection) throws SolrServerException, IOException { + @Nullable HandlerStats getHandlerMetrics(String collection) throws SolrServerException, IOException { String actualCollection = extractCollectionName(collection); if (!validateCollectionExists(actualCollection)) {