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

Fix converting (all) properties to TFX Properties #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SiebelsTim
Copy link
Collaborator

I don't know why, but removing the whitespace will sometimes result
in an endless loop always getting a new PsiWhitespace object.

nullable primitive objects need to be SimpleObjectProperties as
the primitive counterpart do not support null.

Lastly, disable "convert all properties to TFX properties" in data classes
as that would result in an empty constructor which is not allowed
for data classes. It would break the data classes functions anyway.

We might want to consider improving the intention action to keep
constructor parameters so the user of that class can create an object
in the same way it was before running this action. Right now we remove the
parameters.
I still think it's wrong for data classes though

fixes #96

I don't know why, but removing the whitespace will sometimes result
in an endless loop always getting a new PsiWhitespace object.

nullable primitive objects need to be SimpleObjectProperties as
the primitive counterpart do not support null.

Lastly, disable "convert all properties to TFX properties" in data classes
as that would result in an empty constructor which is not allowed
for data classes. It would break the data classes functions anyway.

We might want to consider improving the intention action to keep
constructor parameters so the user of that class can create an object
in the same way it was before running this action. Right now we remove the
parameters.
I still think it's wrong for data classes though

fixes edvin#96
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.

Problems executing "convert all property to TornadoFx properties"
1 participant