Title: refactor: reformat McpSchema.java and reorganize imports by tzolov · Pull Request #392 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: refactor: reformat McpSchema.java and reorganize imports by tzolov · Pull Request #392 · modelcontextprotocol/java-sdk
X Title: refactor: reformat McpSchema.java and reorganize imports by tzolov · Pull Request #392 · modelcontextprotocol/java-sdk
Description: Remove unused imports (CallToolResult, TextContent) Standardize code formatting and indentation throughout Adjust formatter comments positioning Improve readability of record definitions and builder classes Reformat McpSchema.java and reorganize imports for improved code consistency and readability Motivation and Context This change improves code maintainability and consistency by: Standardizing code formatting throughout the McpSchema.java file Organizing imports in a logical order (SLF4J imports moved to top) Removing unused imports to reduce clutter Ensuring consistent indentation and brace positioning across all record definitions and builder classes How Has This Been Tested? Existing unit tests should continue to pass as no functional changes were made Code compilation verified to ensure no syntax errors introduced Import organization verified to maintain all necessary dependencies Breaking Changes No breaking changes - this is purely a formatting and import organization change with no functional modifications. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context This refactoring focuses solely on code style and organization: Applied consistent formatting to record definitions, builder classes, and enum declarations Adjusted @formatter:off/on comment positioning for better code structure Removed unused imports and Moved SLF4J Logger imports to the top of the import block for better organization No functional logic was modified, ensuring backward compatibility
Open Graph Description: Remove unused imports (CallToolResult, TextContent) Standardize code formatting and indentation throughout Adjust formatter comments positioning Improve readability of record definitions and builde...
X Description: Remove unused imports (CallToolResult, TextContent) Standardize code formatting and indentation throughout Adjust formatter comments positioning Improve readability of record definitions and builde...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/pull/392
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9d7735e5-c0f5-2178-f653-feb7ed0b3669 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B5BE:116E4B:59336AD:75223E9:6A5DAAFD |
| html-safe-nonce | 0ad56b05d953e0beaa8fe303aa13726386fc7d7d62759f68b499f213661160f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUJFOjExNkU0Qjo1OTMzNkFEOjc1MjIzRTk6NkE1REFBRkQiLCJ2aXNpdG9yX2lkIjoiMjcyMTgwODc1NTM2OTgxNDc4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ec12f82005e6022b2fbdb3bdfa7cd7d0a76dde3aba1a5fb1d596305a59bf53ef |
| hovercard-subject-tag | pull_request:2662304473 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/java-sdk/pull/392/files |
| twitter:image | https://avatars.githubusercontent.com/u/1351573?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1351573?s=400&v=4 |
| og:image:alt | Remove unused imports (CallToolResult, TextContent) Standardize code formatting and indentation throughout Adjust formatter comments positioning Improve readability of record definitions and builde... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width