mirror of https://github.com/apache/openjpa.git
OPENJPA-2187: Generate correct source for a file that is in the default package.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1337325 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
155f2626d0
commit
ae9e05b9c7
|
@ -842,9 +842,10 @@ public class SourceCode {
|
|||
name = p;
|
||||
}
|
||||
|
||||
public void write(PrintWriter out, int tab) {
|
||||
out.println("package " + name + SEMICOLON);
|
||||
}
|
||||
public void write(PrintWriter out, int tab) {
|
||||
if (name != null && !name.isEmpty())
|
||||
out.println("package " + name + SEMICOLON);
|
||||
}
|
||||
}
|
||||
|
||||
class Comment {
|
||||
|
|
Loading…
Reference in New Issue