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

Inherited classes should have callSuper=true in toString lombok annotation #5

Open
sgeeroms opened this issue Mar 5, 2020 · 0 comments

Comments

@sgeeroms
Copy link

sgeeroms commented Mar 5, 2020

Hi Andrey,

How are you?
We still use this plugin to generate our rest api classes. :)
And so when the inherited class is generated the lombok ToString annotation is added without a callSuper.
And so the properties of the super class are not added in the string representation.

f.e.

`
package com.evs.phoenix.transform.payloads;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.lang.Boolean;
import java.lang.String;
import lombok.EqualsAndHashCode;
import lombok.ToString;

@tostring
@EqualsAndHashCode
public class FileLocation extends Location {
@JsonProperty("_type")
private final String type = "FileLocation";

@JsonProperty("present")
private Boolean present;

public String getType() {
    return type;
}

public Boolean isPresent() {
    return present;
}

public void setPresent(Boolean present) {
    this.present = present;
}

}
`

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

1 participant