[java-highlighting] Avoid TextRange computation until necessary

GitOrigin-RevId: 8d2b32d3b5353a1ff4b855acc779d69907f935af
This commit is contained in:
Tagir Valeev
2020-09-23 11:13:43 +00:00
committed by intellij-monorepo-bot
parent b49b61e9c4
commit 044abd82e1
7 changed files with 55 additions and 52 deletions
@@ -5,7 +5,7 @@ interface I {
class A implements I {
{
System.out.println(A./*c1*/<error descr="Static method may be invoked on containing interface class only">foo</error>());
Runnable r = <error descr="Static method may be invoked on containing interface class only">A/*c2*/::<String>foo</error>;
Runnable r = <error descr="Static method may be invoked on containing interface class only">A/*c2*/::<String>foo;</error>
System.out.println(r);
}
}
@@ -4,7 +4,7 @@ public class ExTest {
}
{
Block<String> b = <error descr="Unhandled exception: ExTest.Ex">ExTest::maybeThrow</error>;
Block<String> b = <error descr="Unhandled exception: ExTest.Ex">ExTest::maybeThrow;</error>
}