Sign in
android
/
platform
/
tools
/
idea
/
9b5d02ac8c92b1e71523cc15cb3d168d57fbd898
/
.
/
java
/
java-tests
/
testData
/
codeInsight
/
daemonCodeAnalyzer
/
quickFix
/
streamApiMigration
/
beforeCollectIdentityMap.java
blob: 9f708f63e02ca9cec63da574efd72ecb7fe5600b [
file
] [
log
] [
blame
]
// "Replace with collect" "true"
import
java
.
util
.*;
public
class
Collect
{
class
Person
{}
void
collectNames
(
List
<
Person
>
persons
){
List
<
Person
>
names
=
new
ArrayList
<>();
for
(
Person
person
:
pers
<
caret
>
ons
)
{
names
.
add
(
person
);
}
}
}