mcharmas/android-parcelable-intellij-plugin

[Question] Why the generated constructor is protected rather than private?

kostovtd opened this issue · 1 comments

I'm a long-time user of this plugin for Android Studio. Great job!

Just a small question - in the official Android Documentation, the example of how the Parcelable interface should be used is slightly different than the generated code by your plugin.

In the official example, the POJO's constructor is private, while the one generated by your plugin is protected. Is there any specific reason for this?

Links:
Official Parcelable documentation
POJO with Parcelable code generated by your plugin