Skip to content

Commit

Permalink
Handle warnings about Android incompatibility
Browse files Browse the repository at this point in the history
This feature should never be invoked on Android.
  • Loading branch information
gbrail committed Sep 24, 2024
1 parent 0f9c428 commit 54e0386
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

/**
* The Bootstrapper contains the method that is called by invokedynamic instructions in the bytecode
* to map a call site to a method.
* to map a call site to a method. We should never go down this entire code path on Android.
*/
@SuppressWarnings("AndroidJdkLibsChecker")
public class Bootstrapper {
private static final Pattern SEPARATOR = Pattern.compile(":");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* operation that we support. It links every operation to the corresponding ScriptRuntime or
* OptRuntime operation that was used in the bytecode before we introduced dynamic linking.
*/
@SuppressWarnings("AndroidJdkLibsChecker")
class DefaultLinker implements GuardingDynamicLinker {
static final boolean DEBUG;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* A list of namespaces for operations that are specific to Rhino, on top of standard namespaces
* like "Property".
*/
@SuppressWarnings("AndroidJdkLibsChecker")
public enum RhinoNamespace implements Namespace {
NAME,
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* A list of operation types used that are specific to Rhino, in addition to standard operations
* like GET and SET...
*/
@SuppressWarnings("AndroidJdkLibsChecker")
public enum RhinoOperation implements Operation {
BIND,
GETNOWARN,
Expand Down

0 comments on commit 54e0386

Please sign in to comment.