forked from jgrapht/jgrapht
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use java.net.URI instead of java.net.URL vertices (jgrapht#737)
Unfortunately URL's `#equals` implementation is slow and broken [1, 2]. Since the `HelloJGraphT` code is part of this library's documentation, it seems better to use the URI class instead. [1] https://stackoverflow.com/questions/3771081/proper-way-to-check-for-url-equality [2] https://javaantipatterns.wordpress.com/2007/11/24/comparing-urls-with-urlequals
- Loading branch information
1 parent
73de8ef
commit 597297c
Showing
2 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters