mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
unhandled exception: shrink the highlighted range (IDEA-177234)
This commit is contained in:
+2
-2
@@ -4,10 +4,10 @@ interface I<T extends Exception> {
|
||||
|
||||
class C {
|
||||
void x(I<?> i) {
|
||||
<error descr="Unhandled exception: java.lang.Exception">i.m();</error>
|
||||
i.<error descr="Unhandled exception: java.lang.Exception">m();</error>
|
||||
}
|
||||
|
||||
void y(I<? extends Exception> i) {
|
||||
<error descr="Unhandled exception: java.lang.Exception">i.m();</error>
|
||||
i.<error descr="Unhandled exception: java.lang.Exception">m();</error>
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -4,7 +4,7 @@ public class ExTest {
|
||||
}
|
||||
|
||||
{
|
||||
Block<String> b = (t) -> <error descr="Unhandled exception: ExTest.Ex">ExTest.maybeThrow(t)</error>;
|
||||
Block<String> b = (t) -> ExTest.<error descr="Unhandled exception: ExTest.Ex">maybeThrow(t)</error>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -6,6 +6,6 @@ class Test {
|
||||
|
||||
public static void main(String[] args) {
|
||||
Iterable<Consumer<Reader>> i = Arrays.asList(<error descr="Unhandled exception: IOException">(r) -> r.read()</error>);
|
||||
Iterable<Consumer<Reader>> i1 = Arrays.<Consumer<Reader>>asList((r) -> <error descr="Unhandled exception: java.io.IOException">r.read()</error>);
|
||||
Iterable<Consumer<Reader>> i1 = Arrays.<Consumer<Reader>>asList((r) -> r.<error descr="Unhandled exception: java.io.IOException">read()</error>);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@ public class c1 {
|
||||
try {
|
||||
fis = new FileInputStream("");
|
||||
DataInputStream dis = new DataInputStream(fis);
|
||||
<caret>dis.readInt();
|
||||
dis.<caret>readInt();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ public class c1 {
|
||||
try {
|
||||
fis = new FileInputStream("");
|
||||
DataInputStream dis = new DataInputStream(fis);
|
||||
<caret>dis.readInt();
|
||||
dis.<caret>readInt();
|
||||
} catch (FileNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user