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

Is copy constructor needed indeed? #175

Open
jdneo opened this issue Jul 22, 2024 · 1 comment
Open

Is copy constructor needed indeed? #175

jdneo opened this issue Jul 22, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@jdneo
Copy link
Member

jdneo commented Jul 22, 2024

See:

// since the model returned from Gradle TAPI is a wrapped object, here we re-construct it
// via a copy constructor and return as a POJO.
return new DefaultGradleSourceSets(buildExecutor.run());

@jdneo
Copy link
Member Author

jdneo commented Sep 2, 2024

See: #188 (comment)

Looks like, if we want to get rid of the copy constructor, we need to add an api for the model, somthing like getGradleSourceSetInstance(). Similar to what we did in the LanguageExtension: https://github.com/microsoft/build-server-for-gradle/blob/develop/model/src/main/java/com/microsoft/java/bs/gradle/model/LanguageExtension.java#L70

@jdneo jdneo added the help wanted Extra attention is needed label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant