Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2009-03-05 22:43:37 +0000
committermkersten2009-03-05 22:43:37 +0000
commit663541b7b2a1851751bebf91b6d7b67d28a31203 (patch)
treef7be526a933b715d7d9449f41a228cfb057c8733 /org.eclipse.mylyn.bugzilla.tests
parentca0cd9f814e7cda43f37dadf5bee283aa814b7b4 (diff)
downloadorg.eclipse.mylyn.tasks-663541b7b2a1851751bebf91b6d7b67d28a31203.tar.gz
org.eclipse.mylyn.tasks-663541b7b2a1851751bebf91b6d7b67d28a31203.tar.xz
org.eclipse.mylyn.tasks-663541b7b2a1851751bebf91b6d7b67d28a31203.zip
NEW - bug 267143: [performance][context] expand all causes expensive computations in InterestFilter
https://bugs.eclipse.org/bugs/show_bug.cgi?id=267143
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java1
-rw-r--r--org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaTaskHistoryTest.java35
2 files changed, 9 insertions, 27 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
index 0690e4d04..3a8574ff9 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
@@ -199,7 +199,6 @@ public class BugzillaConfigurationTest extends TestCase {
// incoming.append("</RDF>");
//
// StringBuffer result = XmlCleaner.clean(new StringReader(incoming.toString()));
-// System.err.println(result);
// }
/**
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaTaskHistoryTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaTaskHistoryTest.java
index e2d388e28..e66c22639 100644
--- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaTaskHistoryTest.java
+++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/headless/BugzillaTaskHistoryTest.java
@@ -128,36 +128,19 @@ public class BugzillaTaskHistoryTest extends AbstractBugzillaTest {
assertTrue(storedHistoryFile.delete());
}
- private void storeHistory(TaskHistory history) {
+ private void storeHistory(TaskHistory history) throws FileNotFoundException, IOException {
File saveFile = new File(HISTORY_FILE_NAME);
saveFile.deleteOnExit();
- try {
- ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(saveFile));
- out.writeObject(history);
- out.close();
- } catch (FileNotFoundException e) {
- System.err.println("Can't write to: " + saveFile);
- } catch (IOException e) {
- e.printStackTrace();
- }
+ ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(saveFile));
+ out.writeObject(history);
+ out.close();
}
- private TaskHistory getStoredHistory() {
+ private TaskHistory getStoredHistory() throws FileNotFoundException, IOException, ClassNotFoundException {
File file = new File(HISTORY_FILE_NAME);
- try {
- ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));
- TaskHistory history = (TaskHistory) in.readObject();
- in.close();
- return history;
- } catch (FileNotFoundException e) {
- System.err.println("Can't find: " + file);
- } catch (IOException e) {
- e.printStackTrace();
- } catch (ClassNotFoundException e) {
- e.printStackTrace();
- }
-
- // Should never happen
- return null;
+ ObjectInputStream in = new ObjectInputStream(new FileInputStream(file));
+ TaskHistory history = (TaskHistory) in.readObject();
+ in.close();
+ return history;
}
}

Back to the top