Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2007-11-01 17:52:10 +0000
committerDani Megert2007-11-01 17:52:10 +0000
commit77bf8db55f5ee15a81fff804de032fa38bbf9d45 (patch)
tree9ea19cc16428e3d777a3fb067ffb618895ec8c8f /org.eclipse.ui.editors.tests/src
parent66d740e4f9d0f791f75229937264d20d206bec80 (diff)
downloadeclipse.platform.text-77bf8db55f5ee15a81fff804de032fa38bbf9d45.tar.gz
eclipse.platform.text-77bf8db55f5ee15a81fff804de032fa38bbf9d45.tar.xz
eclipse.platform.text-77bf8db55f5ee15a81fff804de032fa38bbf9d45.zip
Set fields to null on teadDown().
Diffstat (limited to 'org.eclipse.ui.editors.tests/src')
-rw-r--r--org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
index fd8f015a1..086922d72 100644
--- a/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
+++ b/org.eclipse.ui.editors.tests/src/org/eclipse/ui/editors/tests/EncodingChangeTests.java
@@ -52,7 +52,7 @@ import org.eclipse.ui.texteditor.StatusTextEditor;
*/
public class EncodingChangeTests extends TestCase {
- private static final String ORIGINAL_CONTENT= "line1\nline2\nline3";
+ private static final String ORIGINAL_CONTENT= "line1\nline2\nline3";
public static Test suite() {
return new TestSuite(EncodingChangeTests.class);
@@ -89,6 +89,7 @@ public class EncodingChangeTests extends TestCase {
*/
protected void tearDown() throws Exception {
closeEditor(fEditor);
+ fEditor= null;
fFile= null;
try {
ResourceHelper.deleteProject("EncodingChangeTestProject");
@@ -181,6 +182,6 @@ public class EncodingChangeTests extends TestCase {
fail();
} catch (PartInitException e) {
fail();
- }
+ }
}
}

Back to the top