Result:
public class cls1
{
short f1;
short f2;
byte f3;
}
public class cls2
{
short f4;
short f5;
byte f6;
}
Result not like this :
public class cls1
{
short f1;
short f2;
byte f3;
public class cls2
{
short f4;
short f5;
byte f6;
}
}
JavaPoet deliberately doesn’t support this. We recommend you use nesting or separate files instead.