Skip to content

Support Java record for v1.6. Fixes #1830 #1835

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

Merged
merged 1 commit into from
Sep 19, 2022

Conversation

uc4w6c
Copy link
Collaborator

@uc4w6c uc4w6c commented Sep 6, 2022

Description

Example

@RequestMapping("record")
@RestController
public class RecordObjectController {
  @GetMapping
  public String index(@ParameterObject RecordObjectRequest recordObjectRequest) {
    return recordObjectRequest.toString();
  }
}
public record RecordObjectRequest(String id, String name) {}

スクリーンショット 2022-09-06 22 17 44

@uc4w6c uc4w6c force-pushed the support-java-record-for-v1_6 branch from c0274ea to e1f75de Compare September 6, 2022 13:29
@bnasslahsen
Copy link
Collaborator

@uc4w6c,

Thank you for your contribution to the project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Java record for v1.6
2 participants