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

Does not work with nested, inner class #34

Open
rajinder-yadav opened this issue Jan 10, 2021 · 2 comments
Open

Does not work with nested, inner class #34

rajinder-yadav opened this issue Jan 10, 2021 · 2 comments

Comments

@rajinder-yadav
Copy link

rajinder-yadav commented Jan 10, 2021

Plugin version: 7.0.1
Platform: Linux

The wrong ctor is created when trying to create for inner class Product, also the indentation are off, see code below.

Other issues

  1. I am not able to generate getter, setter,
  2. wrong equals and hashCode is generated for inner class
  3. wrong toString generated for inner class
public class Cart {

  long id;
  long count;
  String user;

  class Product {

    long id;
    String name;
    String description;
    double price;


  public Cart(long id, long count, String user) {
    this.id = id;
    this.count = count;
    this.user = user;
  }


  }

}
@lorenz9314
Copy link

Stumbled upon this too, this is an important feature that is lacking. There are a lot of scenarios, e.g., patterns dictated by some widely used APIs that require inner classes to be declared. Not being able to generate constructors in such instances is a major drawback.

@Gome510
Copy link

Gome510 commented Dec 29, 2022

ditto

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