Sorry in advance if this is a duplicate of an existing issue or by design.
I am using v2.7.3, but for example, with sample code like so:
public User createUser() {
User me = new User();
me.age = 30;
me.firstName = new Name("foo");
me.lastName = new Name("bar");
}
class User {
public int age;
public Name firstName;
public Name lastName;
}
class Name {
private final String name;
Name(String name) {
this.name = name;
}
public String getName() {
return this.name;
}
}
The lastName property is $refed, not inlined, possibly because firstName has already been inlined.
Is this by design or should I override VisitorContext?
Sorry in advance if this is a duplicate of an existing issue or by design. I am using v2.7.3, but for example, with sample code like so:
I get the following output.
The
lastName
property is$ref
ed, not inlined, possibly becausefirstName
has already been inlined.Is this by design or should I override
VisitorContext
?