Get rid of deprecated annotations and modifiers in project code
This commit is contained in:
@@ -38,7 +38,7 @@ import org.jetbrains.kotlin.utils.addToStdlib.firstIsInstanceOrNull
|
||||
import java.util.Collections
|
||||
import java.util.HashSet
|
||||
|
||||
public class CollectingNameValidator @jvmOverloads constructor(
|
||||
public class CollectingNameValidator @JvmOverloads constructor(
|
||||
existingNames: Collection<String> = Collections.emptySet(),
|
||||
private val filter: (String) -> Boolean = { true }
|
||||
): (String) -> Boolean {
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.jetbrains.kotlin.resolve.calls.callUtil.getResolvedCall
|
||||
import org.jetbrains.kotlin.resolve.calls.callUtil.getValueArgumentsInParentheses
|
||||
import org.jetbrains.kotlin.resolve.calls.model.ArgumentMatch
|
||||
|
||||
@suppress("UNCHECKED_CAST")
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
public inline fun <reified T: PsiElement> PsiElement.replaced(newElement: T): T {
|
||||
val result = replace(newElement)
|
||||
return if (result is T)
|
||||
@@ -37,7 +37,7 @@ public inline fun <reified T: PsiElement> PsiElement.replaced(newElement: T): T
|
||||
(result as JetParenthesizedExpression).getExpression() as T
|
||||
}
|
||||
|
||||
@suppress("UNCHECKED_CAST")
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
public fun <T: PsiElement> T.copied(): T = copy() as T
|
||||
|
||||
public fun JetFunctionLiteralArgument.moveInsideParentheses(bindingContext: BindingContext): JetCallExpression {
|
||||
|
||||
Reference in New Issue
Block a user