Skip to content

Commit

Permalink
Bug in test code: Stumbled over reason why File.toURL() is deprected!
Browse files Browse the repository at this point in the history
This proofs why deprecated methods should always get replaced by
non-deprecated solutions as soon as deprecation is indicated!
  • Loading branch information
mkarg committed Jan 15, 2023
1 parent f9dcdaf commit 917b2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/org/codehaus/plexus/util/FileUtilsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void testToURLs()

for ( int i = 0; i < urls.length; i++ )
{
assertEquals( files[i].toURL(), urls[i] );
assertEquals( files[i].toURI().toURL(), urls[i] );
}
}

Expand Down

0 comments on commit 917b2f7

Please sign in to comment.