-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[Java][Spring] Annotate deprecated fluent model setters with @Deprecated #24705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| openapi: 3.0.3 | ||
| info: | ||
| title: Deprecated property example | ||
| version: 1.0.0 | ||
| paths: | ||
| /example: | ||
| get: | ||
| operationId: getExample | ||
| responses: | ||
| "200": | ||
| description: Example response | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/Example" | ||
| components: | ||
| schemas: | ||
| Example: | ||
| type: object | ||
| properties: | ||
| currentProperty: | ||
| type: string | ||
| deprecatedProperty: | ||
| type: string | ||
| deprecated: true | ||
| deprecatedValues: | ||
| type: array | ||
| deprecated: true | ||
| items: | ||
| type: string | ||
| deprecatedMap: | ||
| type: object | ||
| deprecated: true | ||
| additionalProperties: | ||
| type: string |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -212,6 +212,10 @@ public void setTags(List<TagDto> tags) { | |||||
| this.tags = tags; | ||||||
| } | ||||||
|
|
||||||
| /** | ||||||
| * @deprecated deprecated | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: The generated javadoc Prompt for AI agents
Suggested change
|
||||||
| */ | ||||||
| @Deprecated | ||||||
| public PetDto status(@Nullable StatusEnum status) { | ||||||
| this.status = status; | ||||||
| return this; | ||||||
|
|
@@ -230,7 +234,7 @@ public PetDto status(@Nullable StatusEnum status) { | |||||
| } | ||||||
|
|
||||||
| /** | ||||||
| * @deprecated | ||||||
| * @deprecated deprecated | ||||||
| */ | ||||||
| @Deprecated | ||||||
| @JsonProperty("status") | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -217,6 +217,10 @@ public void setTags(List<Tag> tags) { | |
| this.tags = tags; | ||
| } | ||
|
|
||
| /** | ||
| * @deprecated deprecated | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: For the same deprecated property, the fluent Prompt for AI agents |
||
| */ | ||
| @Deprecated | ||
| public Pet status(@Nullable StatusEnum status) { | ||
| this.status = status; | ||
| return this; | ||
|
|
@@ -235,7 +239,7 @@ public Pet status(@Nullable StatusEnum status) { | |
| } | ||
|
|
||
| /** | ||
| * @deprecated | ||
| * @deprecated deprecated | ||
| */ | ||
| @Deprecated | ||
| @JsonProperty("status") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.