Skip to content

Commit

Permalink
fix(java): add simple fix for Java stratLine issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 4, 2024
1 parent 290978f commit b9af199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ fun CodeContainer.buildSourceCode(codeLines: List<String>) {
if (annotationPos.StartLine != 0) {
position.StartLine = annotationPos.StartLine
position.StartLinePosition = annotationPos.StartLinePosition
} else {
position.StartLine -= 2
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public class CompanyService {
}
"""


val underTestContainer = JavaAnalyser().analysis(underTestCode, "CompanyService.java")
underTestContainer.buildSourceCode(underTestCode.lines())

Expand Down

0 comments on commit b9af199

Please sign in to comment.