From 33e87c6a3d2ada0bce7cb24578cb9601c64c877b Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 23 Mar 2010 16:41:16 +0300 Subject: [PATCH] remove redundant throws --- .../testFramework/fixtures/CodeInsightTestFixture.java | 4 ++-- .../fixtures/impl/CodeInsightTestFixtureImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java index 91bb8a07c476..5a293ca07d40 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java @@ -208,9 +208,9 @@ public interface CodeInsightTestFixture extends IdeaProjectTestFixture { */ void launchAction(@NotNull IntentionAction action) throws Exception; - void configureByFile(@TestDataFile @NonNls String file) throws Exception; + void configureByFile(@TestDataFile @NonNls String file); - void configureByFiles(@NonNls String... files) throws Exception; + void configureByFiles(@NonNls String... files); PsiFile configureByText(FileType fileType, @NonNls String text) throws IOException; diff --git a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java index 8a1440c6abb4..e428dba47887 100644 --- a/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java +++ b/platform/testFramework/src/com/intellij/testFramework/fixtures/impl/CodeInsightTestFixtureImpl.java @@ -914,7 +914,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig return configureByFileInner(filePaths[0]); } - public void configureByFile(final String file) throws IOException { + public void configureByFile(final String file) { assertInitialized(); new WriteCommandAction.Simple(getProject()) { protected void run() throws Exception { @@ -923,7 +923,7 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig }.execute(); } - public void configureByFiles(@NonNls final String... files) throws Exception { + public void configureByFiles(@NonNls final String... files) { new WriteCommandAction.Simple(getProject()) { protected void run() throws Exception { configureByFilesInner(files);