From dad96525be21cd9781e9e12eb8cd6674fabcb4bb Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 12 Jul 2010 19:03:12 +0400 Subject: [PATCH] cleanup --- .../codeInsight/intention/EmptyIntentionAction.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/EmptyIntentionAction.java b/platform/lang-impl/src/com/intellij/codeInsight/intention/EmptyIntentionAction.java index 44668a2ef223..8808e65288f1 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/EmptyIntentionAction.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/EmptyIntentionAction.java @@ -32,7 +32,7 @@ import java.util.List; public final class EmptyIntentionAction implements IntentionAction{ private final String myName; - public EmptyIntentionAction(final String name) { + public EmptyIntentionAction(@NotNull String name) { myName = name; } @@ -63,15 +63,11 @@ public final class EmptyIntentionAction implements IntentionAction{ final EmptyIntentionAction that = (EmptyIntentionAction)o; - if (myName != null ? !myName.equals(that.myName) : that.myName != null) return false; - - return true; + return myName.equals(that.myName); } public int hashCode() { - int result; - result = (myName != null ? myName.hashCode() : 0); - return result; + return myName.hashCode(); } // used by TeamCity plugin