trivial functional expressions usage: inline args if provided (IDEA-131090)

This commit is contained in:
Anna Kozlova
2016-01-12 16:01:51 +01:00
parent e39f57a94e
commit aad1c273e1
3 changed files with 39 additions and 1 deletions

View File

@@ -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");
}
}

View File

@@ -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");
}
}