I have Java code generated from ANTLR4. Scala uses Java code, extending some of the methods. The problem is that the IntelliJ Scala plugin does not seem to know the relationship between the Java base class and the Scala subclass to show a false positive error message; it reports “Method ... cancels nothing” when Scala overrides the Java method.
How to control error level in IntelliJ to suppress this error message?
Most of the false negatives generated by the Scala plugin are caused by type-specific highlighting:
, , , , .
. IntelliJ, /*_*/ ... /*_*/, .
/*_*/ ... /*_*/
:
class Test { } class Test1 { /*_*/ override def foo = 1 /*_*/ }
override def foo .
override def foo