don't visit jdk Stream API usages when searching for unrelated functional interface implementations

This commit is contained in:
peter
2016-08-03 12:49:11 +02:00
parent 4db293153c
commit 522e0b9c2d
10 changed files with 286 additions and 31 deletions
@@ -0,0 +1,18 @@
interface I {
Object fun(Object o);
}
class Arrays {
static MyStream stream(int a) { }
}
interface MyStream {
MyStream map(I i);
}
class Test {
{
Arrays.stream().map(p -> "a");
}
}
@@ -0,0 +1,24 @@
interface I {
Object fun(Object o);
}
interface MyStream {
MyStream map(I i);
}
class StrType {
static MyStream of(int b) {}
}
class Test extends Base {
{
new Runnable() {
void run() {
Stream.of(1).map(p -> "b"));
}
}
}
}
@@ -0,0 +1,24 @@
interface I {
Object fun(Object o);
}
interface MyStream {
MyStream map(I i);
}
class Test {
class StrType {
static MyStream of(int b) {}
}
{
StrType Stream = null;
new Runnable() {
void run() {
Stream.of(1).map(p -> "b"));
}
}
}
}