Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2017-06-09 11:33:22 -0400
committerTomasz Zarna2017-06-20 01:44:04 -0400
commit8ce10b10b3bc9cb4cd982f26b5975d6b9371e461 (patch)
treec4a8aa47798e7a89a36748dfaf96ca3316154e3f /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks
parent57b34b9769863559b928b18e2aedf948084a25a2 (diff)
downloadorg.eclipse.mylyn.tasks-8ce10b10b3bc9cb4cd982f26b5975d6b9371e461.tar.gz
org.eclipse.mylyn.tasks-8ce10b10b3bc9cb4cd982f26b5975d6b9371e461.tar.xz
org.eclipse.mylyn.tasks-8ce10b10b3bc9cb4cd982f26b5975d6b9371e461.zip
remove commented out TaskDataStore.putLastRead method
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java25
1 files changed, 5 insertions, 20 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
index 82485ca5b..defad4d18 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java
@@ -77,12 +77,9 @@ public class TaskDataStore {
state = readState(file);
} catch (CoreException e) {
if (!user) {
- throw new CoreException(
- new Status(
- IStatus.ERROR,
- ITasksCoreConstants.ID_PLUGIN,
- "Reading of existing task data failed. Forcing synchronization will override outgoing changes.", //$NON-NLS-1$
- e));
+ throw new CoreException(new Status(IStatus.ERROR, ITasksCoreConstants.ID_PLUGIN,
+ "Reading of existing task data failed. Forcing synchronization will override outgoing changes.", //$NON-NLS-1$
+ e));
}
}
if (state == null) {
@@ -133,8 +130,8 @@ public class TaskDataStore {
return readStateInternal(file, false);
} catch (SAXException e) {
// bug 268456: if reading fails, try again using a different XML version
- if (e.getMessage() != null
- && (e.getMessage().contains("invalid XML character") || e.getMessage().contains(" \"&#"))) { //$NON-NLS-1$ //$NON-NLS-2$
+ if (e.getMessage() != null && (e.getMessage().contains("invalid XML character") //$NON-NLS-1$
+ || e.getMessage().contains(" \"&#"))) { //$NON-NLS-1$
return readStateInternal(file, true);
} else {
throw e;
@@ -168,18 +165,6 @@ public class TaskDataStore {
}
}
-// public synchronized void putLastRead(File file, TaskData data) throws CoreException {
-// Assert.isNotNull(file);
-// Assert.isNotNull(data);
-//
-// TaskDataState state = readState(file);
-// if (state == null) {
-// state = new TaskDataState(data.getConnectorKind(), data.getRepositoryUrl(), data.getTaskId());
-// }
-// state.setLastReadData(data);
-// writeState(file, state);
-// }
-
public synchronized void putTaskData(File file, TaskDataState state) throws CoreException {
writeState(file, state);
}

Back to the top