-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fixes #3274] Reset erasure_field of symbol
- Loading branch information
Showing
5 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/transform/resource/after-delombok/UtilityClassGeneric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
final class UtilityClassGeneric { | ||
static <T> T convertValue(Class<T> toValueType) { | ||
return null; | ||
} | ||
|
||
static DTO convert(Object json) { | ||
return convertValue(DTO.class); | ||
} | ||
|
||
static Object convert(DTO dto) { | ||
return null; | ||
} | ||
|
||
static class DTO { | ||
} | ||
|
||
@java.lang.SuppressWarnings("all") | ||
private UtilityClassGeneric() { | ||
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/transform/resource/after-ecj/UtilityClassGeneric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import lombok.experimental.UtilityClass; | ||
final @UtilityClass class UtilityClassGeneric { | ||
static class DTO { | ||
DTO() { | ||
super(); | ||
} | ||
} | ||
static <T>T convertValue(Class<T> toValueType) { | ||
return null; | ||
} | ||
static DTO convert(Object json) { | ||
return convertValue(DTO.class); | ||
} | ||
static Object convert(DTO dto) { | ||
return null; | ||
} | ||
private @java.lang.SuppressWarnings("all") UtilityClassGeneric() { | ||
super(); | ||
throw new java.lang.UnsupportedOperationException("This is a utility class and cannot be instantiated"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import lombok.experimental.UtilityClass; | ||
@UtilityClass | ||
class UtilityClassGeneric { | ||
<T> T convertValue(Class<T> toValueType) { | ||
return null; | ||
} | ||
|
||
DTO convert(Object json) { | ||
return convertValue(DTO.class); | ||
} | ||
|
||
Object convert(DTO dto) { | ||
return null; | ||
} | ||
|
||
class DTO { | ||
} | ||
} |