preserve comments when remove redundant type arguments

This commit is contained in:
Anna.Kozlova
2018-10-10 18:01:36 +02:00
parent 4831eed1ce
commit 2733df787f
3 changed files with 6 additions and 3 deletions

View File

@@ -4,7 +4,8 @@ import java.util.List;
class Collectors {
public static void foo(List<String> list) {}
{
foo(Collectors.of());
//c1
foo(Collectors.of());
}
public static <E> List<E> of() {

View File

@@ -4,7 +4,8 @@ import java.util.List;
class Collectors {
public static void foo(List<String> list) {}
{
foo(Collectors.<Str<caret>ing>of());
foo(Collectors.<Str<caret>ing//c1
>of());
}
public static <E> List<E> of() {