Skip to content
Snippets Groups Projects
Commit aaf1ca1b authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

Update PersistenceHelper.java

parent 88baf46f
No related branches found
No related tags found
No related merge requests found
......@@ -355,17 +355,17 @@ public class PersistenceHelper {
* EMF and returns it.
*
* @param resource
* @return timestamp or <code>-1</code> if none is found
* @return timestamp or <code>System.currentTimeMillis();</code> if none is found
*/
private static long getTextTimestamp(final Resource resource) {
final EMap<String, Attribute> attributes = getAttributesMap(resource);
if (attributes != null) {
final Attribute attr = attributes
.get(TextToolsPlugin.TYPE_LASTMODIFIED.getId());
return attr != null ? (Long) attr.getValue() : -1;
return attr != null ? (Long) attr.getValue() : System.currentTimeMillis();
}
return -1;
return System.currentTimeMillis();
}
private static EMap<String, Attribute> getAttributesMap(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment