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

Nested support #41

Open
kyze8439690 opened this issue Oct 26, 2015 · 2 comments
Open

Nested support #41

kyze8439690 opened this issue Oct 26, 2015 · 2 comments

Comments

@kyze8439690
Copy link

Thanks for your plugin, it save us tons of work! But I found that, if I put an instance into an instance of the same type, like below:

public class A {
private int mInt;
@nullable private A mA;
}

and I have to apply this plugin twice to make it correct. Sometime someone forgot to apply it twice and make it crash or compile fail.

@mcharmas
Copy link
Owner

@kyze8439690 thanks for submitted issue.

To be honest I don't see what doesn't work for you. What's the difference between applying plugin once or multiple times? Could you explain what behavior do you expect?

@DariusL
Copy link

DariusL commented Mar 16, 2016

Could you give an example of failing generated code? I tried your class structure and it worked fine. Generating a second time gave different code, but the differences were inconsequential. Here's my test. Granted, I ran against Robolectric and it could fail on the actual device.

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

No branches or pull requests

3 participants