Returns the time when this file was last modified, measured in milliseconds since January 1st, 1970, midnight. @return the time when this file was last modified. @throws SecurityException if a SecurityManager is installed and it denies read access to this file.
()
| 869 | * access to this file. |
| 870 | */ |
| 871 | public long lastModified() { |
| 872 | // SecurityManager security = System.getSecurityManager(); |
| 873 | // if (security != null) { |
| 874 | // security.checkRead(path); |
| 875 | // } |
| 876 | long result = lastModifiedImpl(properPath(true)); |
| 877 | /* Temporary code to handle both return cases until natives fixed */ |
| 878 | if (result == -1 || result == 0) { |
| 879 | return 0; |
| 880 | } |
| 881 | return result; |
| 882 | } |
| 883 | |
| 884 | private native long lastModifiedImpl(byte[] filePath); |
| 885 |
nothing calls this directly
no test coverage detected