Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-05-17 18:06:43 -0400
committerJaxsun McCarthy Huggan2016-05-18 12:31:54 -0400
commit1cf9130cc747348693e2b3632f0a53ae3aaeeb53 (patch)
treec18f40deb20056623cc82ad48063ce66d14c401d /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks
parent7b91dd13af3a2e8b6bdcfe05f701e58f57cbdc1c (diff)
downloadorg.eclipse.mylyn.tasks-1cf9130cc747348693e2b3632f0a53ae3aaeeb53.tar.gz
org.eclipse.mylyn.tasks-1cf9130cc747348693e2b3632f0a53ae3aaeeb53.tar.xz
org.eclipse.mylyn.tasks-1cf9130cc747348693e2b3632f0a53ae3aaeeb53.zip
493037: use a BufferedInputStream for the task list file
Change-Id: If8921202ff340042b8200f7dc7b91d9cfa04c76c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=493037 Signed-off-by: Jaxsun McCarthy Huggan <jaxsun.mccarthy@tasktop.com>
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/externalization/TaskListExternalizer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/TaskListExternalizer.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/TaskListExternalizer.java
index 2c655cff1..84a21463d 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/TaskListExternalizer.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/externalization/TaskListExternalizer.java
@@ -13,6 +13,7 @@
package org.eclipse.mylyn.internal.tasks.core.externalization;
+import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
@@ -105,7 +106,7 @@ public class TaskListExternalizer {
InputStream in = null;
try {
if (inputFile.getName().endsWith(ITasksCoreConstants.FILE_EXTENSION)) {
- in = new ZipInputStream(new FileInputStream(inputFile));
+ in = new ZipInputStream(new BufferedInputStream(new FileInputStream(inputFile)));
ZipEntry entry = ((ZipInputStream) in).getNextEntry();
while (entry != null) {
if (ITasksCoreConstants.OLD_TASK_LIST_FILE.equals(entry.getName())) {

Back to the top