Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
inspection
/
java8MapApi
/
afterReplaceAllEntrySetValueAsValue.java
blob: 5bbfe7d1aa992ea055068f716fc832cf7f867f07 [
file
]
// "Replace with 'replaceAll' method call" "true"
import
java
.
util
.
HashMap
;
import
java
.
util
.
Map
;
public
class
Main
{
public
void
test
()
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"foo"
,
"bar"
);
map
.
replaceAll
((
k
,
v
)
->
v
);
}
}