THausherr commented on code in PR #547:
URL: https://github.com/apache/creadur-rat/pull/547#discussion_r2413569442
##########
apache-rat-core/src/test/java/org/apache/rat/config/exclusion/fileProcessors/GitIgnoreBuilderTest.java:
##########
@@ -118,15 +120,15 @@ private void assertMatches(DocumentName documentName,
DocumentNameMatcher matche
}
@Test
- public void test_RAT_335() {
+ public void test_RAT_335() throws URISyntaxException {
GitIgnoreBuilder underTest = new GitIgnoreBuilder() {
@Override
protected Optional<File> globalGitIgnore() {
return Optional.empty();
}
};
URL url =
GitIgnoreBuilderTest.class.getClassLoader().getResource("GitIgnoreBuilderTest/src/");
- File file = new File(url.getFile());
+ File file = Paths.get(url.toURI()).toFile();
Review Comment:
there are no other `url.getFile()` calls in the project (except the one I
mentioned in JIRA).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]