Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make LocalPDBDirectory.getLastModifiedTime public
It is a general 'has the server got a newer copy' helper with nothing
PDB-specific about it, and other caching code outside this package needs the
same Last-Modified comparison. Protected access only reached subclasses and
the io package itself.
  • Loading branch information
aalhossary committed Aug 15, 2026
commit 66d27c77a427f82812a2e05f5338a33b0b4d14f6
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,9 @@ public static String getMiddleHash(String pdbId) {
* Note that this only works for http URLs
* @param url
* @return the last modified date or null if it couldn't be retrieved (in that case a warning will be logged)
* @since 7.3.0 made public so that other caching code can reuse it
*/
protected static Date getLastModifiedTime(URL url) {
public static Date getLastModifiedTime(URL url) {

// see http://stackoverflow.com/questions/2416872/how-do-you-obtain-modified-date-from-a-remote-file-java
Date date = null;
Expand Down
Loading