openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1301642 - /openjpa/branches/2.2.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
Date Fri, 16 Mar 2012 16:45:57 GMT
Author: curtisr7
Date: Fri Mar 16 16:45:57 2012
New Revision: 1301642

URL: http://svn.apache.org/viewvc?rev=1301642&view=rev
Log:
OPENJPA-2156: Correctly generate imports when using classes in java.util packages.

Modified:
    openjpa/branches/2.2.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java

Modified: openjpa/branches/2.2.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java?rev=1301642&r1=1301641&r2=1301642&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
(original)
+++ openjpa/branches/2.2.x/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/util/SourceCode.java
Fri Mar 16 16:45:57 2012
@@ -105,8 +105,6 @@ public class SourceCode {
      */
 	private boolean addImport(ClassName name) {
 		String pkgName = name.getPackageName();
-		if ("java.lang".equals(pkgName))
-			return false;
 		for (Import i : imports) {
 		    if (i.getClassName().hides(name)) {
 		        i.getClassName().useFullName();



Mime
View raw message