Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
daemonCodeAnalyzer
/
quickFix
/
streamApiMigration
/
afterCollectIdentityMap.java
blob: ea95020b1b0998b205e3d9a4cf82bc9ee3cecfe2 [
file
] [
log
] [
blame
]
// "Replace with collect" "true"
import
java
.
util
.*;
import
java
.
util
.
stream
.
Collectors
;
public
class
Collect
{
class
Person
{}
void
collectNames
(
List
<
Person
>
persons
){
List
<
Person
>
names
=
persons
.
stream
().
collect
(
Collectors
.
toList
());
}
}