Skip to content

Fix converting (all) properties to TFX Properties#98

Open
SiebelsTim wants to merge 1 commit into
edvin:masterfrom
SiebelsTim:fix-convert-to-prop
Open

Fix converting (all) properties to TFX Properties#98
SiebelsTim wants to merge 1 commit into
edvin:masterfrom
SiebelsTim:fix-convert-to-prop

Conversation

@SiebelsTim

Copy link
Copy Markdown
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