diff options
author | Tomasz Zarna | 2017-06-09 15:33:22 +0000 |
---|---|---|
committer | Tomasz Zarna | 2017-06-20 05:44:04 +0000 |
commit | 8ce10b10b3bc9cb4cd982f26b5975d6b9371e461 (patch) | |
tree | c4a8aa47798e7a89a36748dfaf96ca3316154e3f | |
parent | 57b34b9769863559b928b18e2aedf948084a25a2 (diff) | |
download | org.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
Change-Id: Id28e58e3863a878a76f222b9e6eaecd6044575f8
-rw-r--r-- | org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/data/TaskDataStore.java | 25 |
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); } |