Evolve public interfaces without surprising clients: communicate the impact of releases, and keep older interfaces available while users plan migrations. section 9.4.2
Use release numbers and compatibility choices to make change easier to manage:
- With semantic versioning, use major releases for breaking changes, minor releases for backward-compatible additions, and patch releases for bug fixes. section 9.4.2
- For smaller interface changes, consider supporting old and new behavior together; mark replaced methods as deprecated and explain what to use instead. section 9.4.2
Changes that can break clients
Making an optional field mandatory, changing validation rules, removing a response field, or modifying an endpoint URL can cause dependent applications to fail. section 9.4.2
@Deprecated(since = "2.1", forRemoval = true)
public void generateReport() { ... }
This Java annotation marks generateReport as deprecated since version 2.1 and scheduled for removal. section 9.4.2


























