mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
Unneeded exceptions
This commit is contained in:
+3
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2012 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,8 +22,8 @@ import com.intellij.pom.java.LanguageLevel;
|
||||
*/
|
||||
public abstract class LightQuickFix15TestCase extends LightQuickFixTestCase {
|
||||
@Override
|
||||
protected void doAllTests() throws Exception {
|
||||
setLanguageLevel(LanguageLevel.JDK_1_5);
|
||||
protected void doAllTests() {
|
||||
setLanguageLevel(LanguageLevel.JDK_1_5);
|
||||
super.doAllTests();
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -121,7 +121,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
if (comment == null) {
|
||||
comment = commenter.getBlockCommentPrefix();
|
||||
}
|
||||
|
||||
|
||||
// "quick fix action text to perform" "should be available"
|
||||
assert comment != null : commenter;
|
||||
Pattern pattern = Pattern.compile("^" + comment.replace("*", "\\*") + actionPattern, Pattern.DOTALL);
|
||||
@@ -197,7 +197,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void doAllTests(QuickFixTestCase testCase) throws Exception {
|
||||
public static void doAllTests(QuickFixTestCase testCase) {
|
||||
assertNotNull("getBasePath() should not return null!", testCase.getBasePath());
|
||||
|
||||
final String testDirPath = testCase.getTestDataPath().replace(File.separatorChar, '/') + testCase.getBasePath();
|
||||
@@ -224,7 +224,7 @@ public abstract class LightQuickFixTestCase extends LightDaemonAnalyzerTestCase
|
||||
doTestFor(fileSuffix, createWrapper());
|
||||
}
|
||||
|
||||
protected void doAllTests() throws Exception {
|
||||
protected void doAllTests() {
|
||||
doAllTests(createWrapper());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user