mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#312 prevent another possible ClassCastException in JDT in case we try to compute the erasure of the Null type
This commit is contained in:
parent
760be8f4f8
commit
3948a2d58b
@ -66,7 +66,7 @@ public class SpecificCompilerWorkarounds {
|
||||
* @jls 4.6 Type Erasure
|
||||
*/
|
||||
public static TypeMirror erasure(Types types, TypeMirror t) {
|
||||
if ( t.getKind() == TypeKind.VOID ) {
|
||||
if ( t.getKind() == TypeKind.VOID || t.getKind() == TypeKind.NULL ) {
|
||||
return t;
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user