Skip to content

Commit

Permalink
Document why constructor is deprecated
Browse files Browse the repository at this point in the history
See conversation in eclipse-lsp4j#822 (comment)
  • Loading branch information
jonahgraham committed May 14, 2024
1 parent c515f17 commit 3a52c0c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@ class WorkspaceEditCapabilities {
new() {
}

/**
* @deprecated because when this class first existed it didn't have any other fields.
* Now that this class has lots of fields, there is nothing special about this
* field and therefore using the setters is the recommended use case.
*/
@Deprecated
new(Boolean documentChanges) {
this.documentChanges = documentChanges
Expand Down

0 comments on commit 3a52c0c

Please sign in to comment.