mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
fixed extends type serialization
updated version to 0.4.0
This commit is contained in:
parent
26aafd0789
commit
0d6440cc0e
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.mysema.codegen</groupId>
|
||||
<artifactId>codegen</artifactId>
|
||||
<version>0.3.9-SNAPSHOT</version>
|
||||
<version>0.4.0</version>
|
||||
<name>Codegen</name>
|
||||
<description>Code generation and compilation for Java</description>
|
||||
<parent>
|
||||
|
||||
@ -12,6 +12,8 @@ import javax.annotation.Nullable;
|
||||
|
||||
import net.jcip.annotations.Immutable;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
|
||||
/**
|
||||
* @author tiwe
|
||||
*
|
||||
@ -43,7 +45,8 @@ public class TypeExtends extends TypeAdapter{
|
||||
if (type.equals(Types.OBJECT)){
|
||||
return "?";
|
||||
}else{
|
||||
return "? extends " + super.getGenericName(true, packages, classes);
|
||||
String genericName = super.getGenericName(true, packages, classes);
|
||||
return StringUtils.isEmpty(genericName) ? "?" : "? extends " + genericName;
|
||||
}
|
||||
}else{
|
||||
return super.getGenericName(asArgType, packages, classes);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user