API change: parameter became NotNull

This commit is contained in:
Nikolay Krasko
2016-06-03 11:58:32 +03:00
parent 6a11055389
commit 1a89d138fb
@@ -27,7 +27,7 @@ import org.jetbrains.kotlin.psi.KtNamedDeclaration
class KotlinDeclarationRenameInputValidator : RenameInputValidator {
override fun getPattern() = PlatformPatterns.psiElement(KtNamedDeclaration::class.java)
override fun isInputValid(newName: String?, element: PsiElement?, context: ProcessingContext?): Boolean {
return newName != null && KotlinNameSuggester.isIdentifier(newName.quoteIfNeeded())
override fun isInputValid(newName: String, element: PsiElement, context: ProcessingContext): Boolean {
return KotlinNameSuggester.isIdentifier(newName.quoteIfNeeded())
}
}