Merge pull request #7494 from amit2103/BAEL-16045-22
[BAEL-16045] - Check Article Code Matches GitHub for https://www.bael…
This commit is contained in:
@@ -35,4 +35,11 @@ public class Generics {
|
||||
return list;
|
||||
}
|
||||
|
||||
public <T> List<T> genericMethod(List<T> list) {
|
||||
return list.stream().collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public List<Object> withErasure(List<Object> list) {
|
||||
return list.stream().collect(Collectors.toList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user