So i know it might sound wrong / bad but this is the situation i have
legacy code that cannot be modified. class A it is a bean class that has been serialize from JSON
class B is part of class C, i'm getting class A and i need to add him as class B into class C.
Is there any good way instead of using copy constructor ?
Class A {
String a;
String b;
}
Class B {
String a;
String b;
}
Class C {
..
..
..
B b;
}