aboutsummaryrefslogtreecommitdiff
path: root/test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java')
-rw-r--r--test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java b/test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java
index c22838fb..8156b786 100644
--- a/test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java
+++ b/test/src/jdk/nashorn/internal/runtime/regexp/JdkRegExpTest.java
@@ -29,7 +29,6 @@ import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
-import jdk.nashorn.internal.runtime.ParserException;
import org.testng.annotations.Test;
/**
@@ -45,8 +44,8 @@ public class JdkRegExpTest {
*/
@Test
public void testMatcher() {
- RegExp regexp = new RegExpFactory().compile("f(o)o", "");
- RegExpMatcher matcher = regexp.match("foo");
+ final RegExp regexp = new RegExpFactory().compile("f(o)o", "");
+ final RegExpMatcher matcher = regexp.match("foo");
assertNotNull(matcher);
assertTrue(matcher.search(0));
assertEquals(matcher.getInput(), "foo");