summaryrefslogtreecommitdiff
path: root/src/test/java/org/javacs/JavaCompilerServiceTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/org/javacs/JavaCompilerServiceTest.java')
-rw-r--r--src/test/java/org/javacs/JavaCompilerServiceTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/java/org/javacs/JavaCompilerServiceTest.java b/src/test/java/org/javacs/JavaCompilerServiceTest.java
index ffcbc26..7b8d20c 100644
--- a/src/test/java/org/javacs/JavaCompilerServiceTest.java
+++ b/src/test/java/org/javacs/JavaCompilerServiceTest.java
@@ -244,7 +244,7 @@ public class JavaCompilerServiceTest {
var uri = r.getCompilationUnit().getSourceFile().toUri();
var fileName = Paths.get(uri).getFileName();
var range = batch.range(r).get();
- stringify.add(String.format("%s:%d", fileName, range.getStart().getLine() + 1));
+ stringify.add(String.format("%s:%d", fileName, range.start.line + 1));
}
assertThat(stringify, hasItem("GotoDefinition.java:3"));
assertThat(stringify, not(hasItem("GotoDefinition.java:6")));