Drop throws usages that looks redundant
Probably appeared after j2k-conversion
This commit is contained in:
@@ -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\$\$")
|
||||
|
||||
-1
@@ -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()
|
||||
|
||||
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user