Claudenw commented on code in PR #547:
URL: https://github.com/apache/creadur-rat/pull/547#discussion_r2414005248


##########
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:
   @THausherr 
   
   Made the 3rd change.  Please verify all is correct.



-- 
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]

Reply via email to