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

add newBuilder method to the source #57

Closed
He-Pin opened this issue Apr 9, 2015 · 1 comment
Closed

add newBuilder method to the source #57

He-Pin opened this issue Apr 9, 2015 · 1 comment

Comments

@He-Pin
Copy link

He-Pin commented Apr 9, 2015

@FreeBuilder
public interface Bean {
    String getName();
    class Builder extends Bean_Builder {
    }
}

after compile

@FreeBuilder
public interface Bean {
    String getName();

    class Builder extends Bean_Builder {

    }

    static Builder newBuilder() {
        return new Builder();
    }
}
@alicederyn
Copy link
Collaborator

Unfortunately, Java does not allow annotation processors to modify existing classes; only generate new ones. But if future Java versions allow it, we'll be on it like a shot!

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

2 participants