Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test fixes #173

Merged
merged 10 commits into from
Apr 17, 2024
2 changes: 1 addition & 1 deletion src/test/java/tests/DetailMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final class DetailMessage extends TestDiagnostic {
*/
static DetailMessage parse(TestDiagnostic input, @Nullable Path rootDirectory) {
Path file = input.getFile();
if (rootDirectory != null && !file.toString().equals("")) {
if (rootDirectory != null && file.startsWith(rootDirectory)) {
// Empty file strings cannot be relativized.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this comment.

file = rootDirectory.relativize(file);
}
Expand Down
Loading