rspec/rules/S3015/java/rule.adoc
Fred Tingaud 16f6c0aecf
Inline adoc when include has no additional value (#1940)
Inline adoc files when they are included exactly once.

Also fix language tags because this inlining gives us better information
on what language the code is written in.
2023-05-25 14:18:12 +02:00

34 lines
656 B
Plaintext

== Why is this an issue?
JNI (Java Native Interface) code should be used only as a last resort, since part of the point of using Java is to make applications portable, and by definition the use of JNI can reduce portability.
=== Noncompliant code example
[source,java]
----
System.loadLibrary("nativeStringLib"); // Noncompliant
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Remove this use of the Java Native Interface.
'''
== Comments And Links
(visible only on this page)
=== on 16 Jun 2015, 17:06:50 Nicolas Peru wrote:
looks good.
endif::env-github,rspecator-view[]