mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
trivial functional expressions usage: inline args if provided (IDEA-131090)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Replace method call on method reference with corresponding method call" "true"
|
||||
|
||||
import java.util.function.ToIntFunction;
|
||||
|
||||
class Test {
|
||||
{
|
||||
int i = Integer.parseInt("123");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Replace method call on method reference with corresponding method call" "true"
|
||||
|
||||
import java.util.function.ToIntFunction;
|
||||
|
||||
class Test {
|
||||
{
|
||||
int i = ((ToIntFunction<String>) Integer::parseInt).apply<caret>AsInt("123");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user