Closed frauzufall closed 4 years ago
Great! Code looks very clean.
One question. Right now this code statically caches failure, with no possibility to "go online" once the first update check fails. Presumably, ImageJ would need to be restarted after the user enables networking. Would it be better to repeat the up-to-date check each time the code is invoked, in case the network status has changed since last time? Then a restart wouldn't be necessary.
Hi @ctrueden, thanks for the review and sorry for the late response! I changed the code so that the offline status is forgotten on a next HTTPS check.
Thanks, @frauzufall !
UpToDate::check
: catchUnknownHostException
UpToDate::check
: returnOFFLINE
ifHTTPSUtil
had no connectionHTTPSUtil::noConnection
indicating whether HTTPS check could not connect to network