Skip to content
Snippets Groups Projects
Commit 36df2168 authored by Sebastian Krings's avatar Sebastian Krings
Browse files

revert commit, changing the return value of getTextTimestamp was not the fix

parent aaf1ca1b
Branches
Tags
No related merge requests found
......@@ -355,17 +355,18 @@ public class PersistenceHelper {
* EMF and returns it.
*
* @param resource
* @return timestamp or <code>System.currentTimeMillis();</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() : System.currentTimeMillis();
return attr != null ? (Long) attr.getValue() : -1;
}
return System.currentTimeMillis();
return -1;
}
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