You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not is it possible to suppress the call of nl() before d(pkg); ?
Example of rendering java class generated with :
package my.company
import ...
/**
* Javadoc
*/
@Xml...
@XmlRootElement
public class MyClass{
Thanks
The text was updated successfully, but these errors were encountered:
BlackBoxThe
changed the title
Java file start with a blank line
Generated Java file start with a blank line - JFormatter#write(JDefinedClass c)
Oct 19, 2022
I guess that forces newline to write space after JAXB (optional) declaration. If you want to use JAXB (optional) declaration and first nl() doesn't exist, the proper JAXB declaration and package declaration wouldn't have space between lines. I think it's correct that nl() before that .d(pkg).
In the Java class JFormatter this line of code "force" to add an empty line before the package line.
jaxb-ri/jaxb-ri/codemodel/codemodel/src/main/java/com/sun/codemodel/JFormatter.java
Line 436 in e710ddc
There is a reason for that ?
If not is it possible to suppress the call of nl() before d(pkg); ?
Example of rendering java class generated with :
Thanks
The text was updated successfully, but these errors were encountered: