Skip to content

Add comments to resolve javadoc warnings#146

Merged
epugh merged 4 commits into
apache:mainfrom
epugh:deal_with_warnings
Jun 15, 2026
Merged

Add comments to resolve javadoc warnings#146
epugh merged 4 commits into
apache:mainfrom
epugh:deal_with_warnings

Conversation

@epugh

@epugh epugh commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Plus help the next person!

@epugh epugh requested a review from Copilot June 13, 2026 18:04
@epugh

epugh commented Jun 13, 2026

Copy link
Copy Markdown
Contributor Author

@adityamparikh can you review?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on eliminating Javadoc warnings and improving developer guidance by adding missing Javadoc blocks across services, records, and package-level documentation.

Changes:

  • Added Javadoc for constants, constructors, and MCP prompt methods to satisfy doclint/javadoc requirements.
  • Expanded method/record Javadoc with missing @param, @return, and @throws tags.
  • Added package-level documentation for org.apache.solr.mcp.server.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/main/java/org/apache/solr/mcp/server/search/SearchService.java Documents sort-clause keys and the search MCP prompt method.
src/main/java/org/apache/solr/mcp/server/schema/SchemaUpdateResult.java Adds record component @param tags to avoid record Javadoc warnings.
src/main/java/org/apache/solr/mcp/server/schema/SchemaService.java Adds Javadoc for schema mutation tools and schema-related MCP prompts.
src/main/java/org/apache/solr/mcp/server/package-info.java Adds package-level Javadoc describing the server root package responsibilities.
src/main/java/org/apache/solr/mcp/server/Main.java Adds an explicit documented default constructor.
src/main/java/org/apache/solr/mcp/server/indexing/IndexingService.java Adds missing constructor @param docs and tool method @return docs; documents indexing MCP prompt.
src/main/java/org/apache/solr/mcp/server/indexing/documentcreator/XmlDocumentCreator.java Adds documented default constructor.
src/main/java/org/apache/solr/mcp/server/indexing/documentcreator/JsonDocumentCreator.java Adds constructor Javadoc for injected ObjectMapper.
src/main/java/org/apache/solr/mcp/server/indexing/documentcreator/IndexingDocumentCreator.java Adds constructor Javadoc for per-format creators.
src/main/java/org/apache/solr/mcp/server/indexing/documentcreator/CsvDocumentCreator.java Adds documented default constructor.
src/main/java/org/apache/solr/mcp/server/config/SolrNativeHints.java Adds documented default constructor.
src/main/java/org/apache/solr/mcp/server/config/SolrConfig.java Adds documented default constructor.
src/main/java/org/apache/solr/mcp/server/collection/CollectionService.java Adds missing @throws and completion-handler @param/@return docs; documents collection-related MCP prompts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/main/java/org/apache/solr/mcp/server/schema/SchemaService.java Outdated
* {@code add-field-type} shape
* @return summary listing the collection and the names of the field types added
* @throws SolrServerException
* if there are if there are errors communicating with Solr
public Main() {
}

static void main(String[] args) {
@adityamparikh

Copy link
Copy Markdown
Contributor

@epugh looks good but I am unable to commit the suggestions.

epugh and others added 3 commits June 15, 2026 12:20
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@epugh epugh merged commit 1e09edd into apache:main Jun 15, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants