Drop throws usages that looks redundant

Probably appeared after j2k-conversion
This commit is contained in:
Denis Zharkov
2015-04-20 16:16:35 +03:00
parent 6f8694976d
commit 5b9aff12d0
4 changed files with 0 additions and 5 deletions
@@ -92,7 +92,6 @@ public class KotlinCliJavaFileManagerTest : PsiTestCase() {
assertCanFind(twoBucks, "foo", "\$\$")
}
throws(javaClass<Exception>())
public fun testTopLevelClassWithDollarsAndInners() {
val manager = configureManager("package foo;\n\n" + "public class Top\$Level\$\$ {\n" +
"public class I\$nner {" + " public class I\$nner{}" + " public class In\$ne\$r\${}" + " public class Inner\$\$\$\$\${}" + " public class \$Inner{}" + " public class \${}" + " public class \$\$\$\$\${}" + "}\n" + "public class Inner {" + " public class Inner{}" + "}\n" + "\n" + "}", "Top\$Level\$\$")
@@ -48,7 +48,6 @@ public open class KotlinClsStubBuilder : ClsStubBuilder() {
return doBuildFileStub(file)
}
throws(javaClass<ClsFormatException>())
fun doBuildFileStub(file: VirtualFile): PsiFileStub<JetFile>? {
val kotlinBinaryClass = KotlinBinaryClassCache.getKotlinBinaryClass(file)
val header = kotlinBinaryClass.getClassHeader()
@@ -32,7 +32,6 @@ public abstract class JetFixtureCompletionBaseTestCase : JetLightCodeInsightFixt
protected open fun defaultInvocationCount(): Int = 0
throws(javaClass<Exception>())
public open fun doTest(testPath: String) {
setUpFixture(testPath)
@@ -77,7 +77,6 @@ public class InplaceRenameTest : LightPlatformCodeInsightTestCase() {
templateManager.setTemplateTesting(true)
object : WriteCommandAction.Simple<Any>(project) {
throws(javaClass<Throwable>())
override fun run() {
handler.invoke(project, editor, file, dataContext)
}
@@ -88,7 +87,6 @@ public class InplaceRenameTest : LightPlatformCodeInsightTestCase() {
val range = state!!.getCurrentVariableRange()
assert(range != null)
object : WriteCommandAction.Simple<Any>(project) {
throws(javaClass<Throwable>())
override fun run() {
editor.getDocument().replaceString(range!!.getStartOffset(), range!!.getEndOffset(), newName)
}