Skip to content
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

refactor: Refactoring the model related code. #85

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

jdneo
Copy link
Member

@jdneo jdneo commented Sep 18, 2023

  • Move the DefaultXXX to the model sub-project. Since the implementation of the model can be used for both plugin and server.
  • Make all the interfaces in the model extend Serializable. Then no need for the implementation classes to declare Serializable.
  • Add Copy constructor for the model classes. This is because the model result returned from Gradle Tooling API is not the original type but a wrapped one. This causes some issue when calling the 'equals()' method.

- Move the DefaultXXX to the model sub-project. Since the implementation
  of the model can be used for both plugin and server.
- Make all the interfaces in the model extend Serializable. Then no need
  for the implementation classes to declare Serializable.
- Add Copy constructor for the model classes. This is because the model
  result returned from Gradle Tooling API is not the original type but a
  wrapped one. This causes some issue when calling the 'equals()' method.

Signed-off-by: Sheng Chen <sheche@microsoft.com>
@jdneo jdneo added the engineering Engineering tasks like refactoring, build infra, etc... label Sep 18, 2023
@jdneo jdneo added this to the 0.1.0 milestone Sep 18, 2023
@jdneo jdneo merged commit eb63966 into develop Sep 19, 2023
4 checks passed
@jdneo jdneo deleted the cs/auto-detect-source-folder branch September 19, 2023 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engineering Engineering tasks like refactoring, build infra, etc...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants