From 5d6b4d641b033e86c8eea94426bb8bf33cd1ccd6 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 15 May 2014 16:27:37 +0400 Subject: [PATCH] Replace "InvalidArgumentException" with "IllegalArgumentException" --- .../jet/plugin/intentions/InvertIfConditionIntention.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/idea/src/org/jetbrains/jet/plugin/intentions/InvertIfConditionIntention.kt b/idea/src/org/jetbrains/jet/plugin/intentions/InvertIfConditionIntention.kt index d2e520403e9..07d71bfa3da 100644 --- a/idea/src/org/jetbrains/jet/plugin/intentions/InvertIfConditionIntention.kt +++ b/idea/src/org/jetbrains/jet/plugin/intentions/InvertIfConditionIntention.kt @@ -28,7 +28,6 @@ import org.jetbrains.jet.lang.psi.JetConstantExpression import org.jetbrains.jet.lang.psi.JetPsiFactory import org.jetbrains.jet.lang.psi.JetPsiUtil import org.jetbrains.jet.lang.psi.JetParenthesizedExpression -import com.sun.javaws.exceptions.InvalidArgumentException import org.jetbrains.jet.lexer.JetSingleValueToken import org.jetbrains.jet.lexer.JetKeywordToken import org.jetbrains.jet.lang.psi.psiUtil.getParentByType @@ -86,7 +85,7 @@ public class InvertIfConditionIntention : JetSelfTargetingIntention JetTokens.GT token == JetTokens.GT -> JetTokens.LTEQ token == JetTokens.GTEQ -> JetTokens.LT - else -> throw InvalidArgumentException(array("The token, \"${token.toString()}\", does not have a negated equivalent.")) + else -> throw IllegalArgumentException("The token $token does not have a negated equivalent.") } } @@ -94,7 +93,7 @@ public class InvertIfConditionIntention : JetSelfTargetingIntention token.getValue() is JetKeywordToken -> token.getValue() - else -> throw InvalidArgumentException(array("The token, ${token.toString()}, does not have an applicable string value.")) + else -> throw IllegalArgumentException("The token $token does not have an applicable string value.") } }