mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
highlight only method name on unhandled exception (IDEA-190912)
This commit is contained in:
@@ -6,6 +6,6 @@ class Test {
|
||||
|
||||
{
|
||||
foo((t)->{});
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo((ClassNotFoundException t)->{});</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo</error>((ClassNotFoundException t)->{});
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ class Test {
|
||||
|
||||
foo(this::m1);
|
||||
foo(this::m2);
|
||||
<error descr="Unhandled exception: java.io.IOException">foo(this::m3);</error>
|
||||
<error descr="Unhandled exception: java.io.IOException">foo</error>(this::m3);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -5,6 +5,6 @@ class Test {
|
||||
<K extends ClassNotFoundException> void foo(F<K> f) throws K { }
|
||||
|
||||
{
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo(() -> {});</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo</error>(() -> {});
|
||||
}
|
||||
}
|
||||
@@ -12,18 +12,18 @@ class Test {
|
||||
<K extends ClassNotFoundException> void foo2(F<K> f) throws K { }
|
||||
|
||||
{
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(()->{});</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(()->{ throw new ClassNotFoundException(); });</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2</error>(()->{});
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2</error>(()->{ throw new ClassNotFoundException(); });
|
||||
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(this::m1);</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2(this::m2);</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2</error>(this::m1);
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo2</error>(this::m2);
|
||||
|
||||
|
||||
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo1(()->{ throw new ClassNotFoundException(); });</error>
|
||||
<error descr="Unhandled exception: java.lang.Exception">foo1(()->{ throw new Exception(); });</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo1</error>(()->{ throw new ClassNotFoundException(); });
|
||||
<error descr="Unhandled exception: java.lang.Exception">foo1</error>(()->{ throw new Exception(); });
|
||||
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo1(this::m2);</error>
|
||||
<error descr="Unhandled exception: java.lang.Exception">foo1(this::m3);</error>
|
||||
<error descr="Unhandled exception: java.lang.ClassNotFoundException">foo1</error>(this::m2);
|
||||
<error descr="Unhandled exception: java.lang.Exception">foo1</error>(this::m3);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user