Skip to content

Commit 63a70f7

Browse files
committed
Run eclipseformat
1 parent da38b00 commit 63a70f7

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

sdk/src/org.graalvm.webimage.api/src/org/graalvm/webimage/api/JSObject.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public String typeof() {
395395
/**
396396
* Sets the value of the key passed as the argument in the JavaScript object.
397397
*
398-
* @param key the object under which the value should be placed in the JavaScript object
398+
* @param key the object under which the value should be placed in the JavaScript object
399399
* @param newValue the value that should be placed under the given key in the JavaScript object
400400
*/
401401
@JS("this[key] = newValue;")
@@ -413,7 +413,7 @@ public String typeof() {
413413
* Invoke the underlying JavaScript function, if this object is callable.
414414
*
415415
* @param args The array of Java arguments, which is converted to JavaScript and passed to the
416-
* underlying JavaScript function
416+
* underlying JavaScript function
417417
* @return The result of the JavaScript function, converted to the corresponding Java value
418418
*/
419419
@JS("return this.apply(this, conversion.extractJavaScriptArray(args[runtime.symbol.javaNative]));")
@@ -424,8 +424,8 @@ public String typeof() {
424424
* in the function, if this object is callable.
425425
*
426426
* @param thisArg The value for the binding of {@code this} inside the JavaScript function
427-
* @param args The array of Java arguments, which is converted to JavaScript and passed to the
428-
* underlying JavaScript function
427+
* @param args The array of Java arguments, which is converted to JavaScript and passed to the
428+
* underlying JavaScript function
429429
* @return The result of the JavaScript function, converted to the corresponding Java value
430430
*/
431431
@JS("return this.apply(thisArg, conversion.extractJavaScriptArray(args[runtime.symbol.javaNative]));")

sdk/src/org.graalvm.webimage.api/src/org/graalvm/webimage/api/JSString.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public int hashCode() {
9191
@JS(value = "return String.fromCharCode(...codeUnits);")
9292
public static native JSString fromCharCode(char... codeUnits);
9393

94-
9594
@JS.Coerce
9695
@JS(value = "return String.fromCodePoint(...codePoints);")
9796
public static native JSString fromCodePoint(int... codePoints);
@@ -109,16 +108,16 @@ public int hashCode() {
109108

110109
@JS.Coerce
111110
@JS(value = """
112-
const code = this.charCodeAt(index);
113-
return Number.isNaN(code) ? -1 : code;
114-
""")
111+
const code = this.charCodeAt(index);
112+
return Number.isNaN(code) ? -1 : code;
113+
""")
115114
public native int charCodeAt(int index);
116115

117116
@JS.Coerce
118117
@JS(value = """
119-
const code = this.codePointAt(index);
120-
return code === undefined ? -1 : code;
121-
""")
118+
const code = this.codePointAt(index);
119+
return code === undefined ? -1 : code;
120+
""")
122121
public native int codePointAt(int index);
123122

124123
@JS.Coerce

sdk/src/org.graalvm.webimage.api/src/org/graalvm/webimage/api/JSValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ public abstract class JSValue {
6262
* Otherwise, the value is cast directly.
6363
*
6464
* @param value the value to coerce, which may be a {@code JSValue} or a native Java object
65-
* @param cls the target Java class to coerce to
66-
* @param <R> the return type
65+
* @param cls the target Java class to coerce to
66+
* @param <R> the return type
6767
* @return the coerced value as an instance of {@code cls}
6868
* @throws ClassCastException if the coercion fails or is unsupported
6969
*/

0 commit comments

Comments
 (0)