unused return value: report native methods (IDEA-90127)

This commit is contained in:
Anna Kozlova
2012-09-14 17:22:47 +04:00
parent 3894a2e676
commit 57c547d18c
5 changed files with 26 additions and 3 deletions
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems>
<problem>
<file>Test.java</file>
<line>2</line>
<description>Return value of the method is never used</description>
</problem>
</problems>
@@ -0,0 +1,7 @@
class Test {
private static native boolean isUnused();
public static void main(String[] args) {
Test.isUnused();
}
}