Skip to content

Commit 193c3bc

Browse files
authored
Document why constructor is deprecated (#831)
See conversation in #822 (comment) Fixes #822
1 parent c515f17 commit 193c3bc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,11 @@ class WorkspaceEditCapabilities {
104104
new() {
105105
}
106106

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

0 commit comments

Comments
 (0)