Does code inspection cover JSNI?

Hello,

on my work with the code inspection utility it seems to me if JSNI methods aren't considered correctly. The common code analysis works with JSNI methods (strg+clicking a javascript class member jumps to the correct java class member). But when I define a java class member that is not used in java scope but within JSNI scope I'll get an inspection warning telling me that the java class member is not used or referenced. (although it's get/set in JSNI context)

Is this a known issue or am I missing something?

Greetings
- Marcel

1 comment
Comment actions Permalink

Hello Marcel,

On-the-fly detection of unused class members, for perfomance reasons, performs
a limited depth analysis of the code and may not consider usages outside
of the Java code. You can turn it off if it's not useful in the context of
your project.

Batch inspection (Analyze | Inspect Code) performs a comprehensive analysis
that should give correct results.

on my work with the code inspection utility it seems to me if JSNI
methods aren't considered correctly. The common code analysis works
with JSNI methods (strg+clicking a javascript class member jumps to
the correct java class member). But when I define a java class member
that is not used in java scope but within JSNI scope I'll get an
inspection warning telling me that the java class member is not used
or referenced. (although it's get/set in JSNI context)

Is this a known issue or am I missing something?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.