mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
don't visit jdk Stream API usages when searching for unrelated functional interface implementations
This commit is contained in:
+18
@@ -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");
|
||||
}
|
||||
}
|
||||
+24
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+24
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user