From 1549a84b408acf7f8c2416408843095305e8fd26 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sun, 12 May 2024 16:19:11 +0200 Subject: [PATCH] jso: remove JSByRef from IndexedDB method for which it's no more relevant Fix #914 --- jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java | 2 -- jso/core/src/main/java/org/teavm/jso/JSByRef.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java b/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java index 524a13de0..1e56a9ab8 100644 --- a/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java +++ b/jso/apis/src/main/java/org/teavm/jso/indexeddb/IDBIndex.java @@ -16,7 +16,6 @@ package org.teavm.jso.indexeddb; import org.teavm.jso.JSBody; -import org.teavm.jso.JSByRef; import org.teavm.jso.JSObject; import org.teavm.jso.JSProperty; import org.teavm.jso.core.JSString; @@ -38,7 +37,6 @@ public abstract class IDBIndex implements JSObject, IDBCursorSource { } @JSBody(params = "obj", script = "return obj;") - @JSByRef private static native String[] unwrapStringArray(JSObject obj); @JSProperty diff --git a/jso/core/src/main/java/org/teavm/jso/JSByRef.java b/jso/core/src/main/java/org/teavm/jso/JSByRef.java index 3092fac1d..70ee7ca1e 100644 --- a/jso/core/src/main/java/org/teavm/jso/JSByRef.java +++ b/jso/core/src/main/java/org/teavm/jso/JSByRef.java @@ -23,7 +23,7 @@ import java.lang.annotation.Target; /** *

Marks parameters of JavaScript methods that should be passed by reference. * This annotation is only applicable to parameters of array type. More specifically: - * to: byte[], short[], char[], int[], float[], double[] or T[], where T is JSObject.

+ * to: byte[], short[], char[], int[], float[], double[].

*/ @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.PARAMETER, ElementType.METHOD })