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:
Richard G. Curtis 2012-05-11 18:41:34 +00:00
parent 155f2626d0
commit ae9e05b9c7
1 changed files with 4 additions and 3 deletions

View File

@ -843,6 +843,7 @@ public class SourceCode {
}
public void write(PrintWriter out, int tab) {
if (name != null && !name.isEmpty())
out.println("package " + name + SEMICOLON);
}
}