Prompt
When documenting configuration properties in Spring Boot applications, follow these conventions for clarity and consistency:
- Avoid starting descriptions with articles like “the” or “a”
// INCORRECT: /** The max time to wait for the container to start. */ // CORRECT: /** Time to wait for the container to start. */ - Begin boolean property descriptions with “Whether…”
// INCORRECT: /** This signals to Brave that the propagation type... */ // CORRECT: /** Whether the propagation type and tracing backend support sharing the span ID... */ - Omit phrases like “by default” since defaults are processed separately
// INCORRECT: /** Sub-protocol to use in websocket handshake signature. Null by default. */ // CORRECT: /** Sub-protocol to use in websocket handshake signature. */ - Ensure all properties have descriptions that clearly explain their purpose
// INCORRECT: private final Map<String, Duration> expiry = new LinkedHashMap<>(); // CORRECT: /** * Duration after which the value expires from the distribution. */ private final Map<String, Duration> expiry = new LinkedHashMap<>(); - Align descriptions with other similar properties in the same class for consistency
Following these conventions improves documentation readability and maintainability while providing a consistent experience for developers using your API.