From 2a6ef67d21200d6e4c7276be31b3dbee675d3f41 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 28 Nov 2021 11:04:08 -0500 Subject: [PATCH] Add Duktape stub --- .../java/com/squareup/duktape/Duktape.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 library/src/main/java/com/squareup/duktape/Duktape.java diff --git a/library/src/main/java/com/squareup/duktape/Duktape.java b/library/src/main/java/com/squareup/duktape/Duktape.java new file mode 100644 index 0000000..4c3c84b --- /dev/null +++ b/library/src/main/java/com/squareup/duktape/Duktape.java @@ -0,0 +1,26 @@ +package com.squareup.duktape; + +import java.io.Closeable; +import java.io.IOException; + +@SuppressWarnings("all") +public class Duktape implements Closeable { + + public static Duktape create() { + throw new RuntimeException("Stub!"); + } + + @Override + public synchronized void close() throws IOException { + throw new RuntimeException("Stub!"); + } + + public synchronized Object evaluate(String script) { + throw new RuntimeException("Stub!"); + } + + public synchronized void set(String name, Class type, T object) { + throw new RuntimeException("Stub!"); + } + +}