From 05c2985a89efe5bc9550a7ac8e3ad84c3a2a78a7 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Mon, 16 Dec 2024 13:38:57 +0100 Subject: [PATCH] spotless --- .../org/mozilla/javascript/tests/NullishCoalescingOpTest.java | 4 ---- .../javascript/tests/OptionalChainingOperatorTest.java | 4 ---- .../src/main/java/org/mozilla/javascript/tests/Utils.java | 4 +++- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/tests/src/test/java/org/mozilla/javascript/tests/NullishCoalescingOpTest.java b/tests/src/test/java/org/mozilla/javascript/tests/NullishCoalescingOpTest.java index 8615aa3478..2136ad3d58 100644 --- a/tests/src/test/java/org/mozilla/javascript/tests/NullishCoalescingOpTest.java +++ b/tests/src/test/java/org/mozilla/javascript/tests/NullishCoalescingOpTest.java @@ -1,10 +1,6 @@ package org.mozilla.javascript.tests; -import static org.junit.Assert.assertThrows; - import org.junit.Test; -import org.mozilla.javascript.EvaluatorException; -import org.mozilla.javascript.Scriptable; public class NullishCoalescingOpTest { @Test diff --git a/tests/src/test/java/org/mozilla/javascript/tests/OptionalChainingOperatorTest.java b/tests/src/test/java/org/mozilla/javascript/tests/OptionalChainingOperatorTest.java index d1b1ec3477..d37b8f0888 100644 --- a/tests/src/test/java/org/mozilla/javascript/tests/OptionalChainingOperatorTest.java +++ b/tests/src/test/java/org/mozilla/javascript/tests/OptionalChainingOperatorTest.java @@ -1,10 +1,6 @@ package org.mozilla.javascript.tests; -import static org.junit.Assert.assertThrows; - import org.junit.Test; -import org.mozilla.javascript.EvaluatorException; -import org.mozilla.javascript.Scriptable; import org.mozilla.javascript.Undefined; public class OptionalChainingOperatorTest { diff --git a/testutils/src/main/java/org/mozilla/javascript/tests/Utils.java b/testutils/src/main/java/org/mozilla/javascript/tests/Utils.java index d99c0d566f..a70b8e0c1a 100644 --- a/testutils/src/main/java/org/mozilla/javascript/tests/Utils.java +++ b/testutils/src/main/java/org/mozilla/javascript/tests/Utils.java @@ -259,7 +259,9 @@ private static void assertException( String js) { // to avoid false positives because we use startsWith() - assertTrue("expectedMessage can't be empty",expectedMessage != null && !expectedMessage.isEmpty()); + assertTrue( + "expectedMessage can't be empty", + expectedMessage != null && !expectedMessage.isEmpty()); Utils.runWithAllOptimizationLevels( cx -> {