mbien commented on PR #9730: URL: https://github.com/apache/netbeans/pull/9730#issuecomment-6264449836
using Path's comparator directly has the same effect with the potential to be worse: since if Paths are on different filesystem impls the behavior is undefined. (and undefined sorting can throw exceptions in the sort alg) what I initially tried though is to create path anyway, just to iterate through the components -> cleaner code. However this breaks on windows since normalized `/` separated String piped into Path.get() would fail. So this might be the best option atm. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
