From 6ac5d0285b3513756bb7801d73e91cf6ae471927 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 16 Jun 2019 12:18:25 +0100 Subject: [PATCH] git: cleanup: simplify GitRebaseEntry.setAction: use NotNull annotation instead of explicit assertion GitOrigin-RevId: 3e54c2b450d3e923525f6932ff7ca37b2761f085 --- plugins/git4idea/src/git4idea/rebase/GitRebaseEntry.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/plugins/git4idea/src/git4idea/rebase/GitRebaseEntry.java b/plugins/git4idea/src/git4idea/rebase/GitRebaseEntry.java index 8473570ee947..959577392ae6 100644 --- a/plugins/git4idea/src/git4idea/rebase/GitRebaseEntry.java +++ b/plugins/git4idea/src/git4idea/rebase/GitRebaseEntry.java @@ -48,13 +48,8 @@ class GitRebaseEntry { return myAction; } - public void setAction(final Action action) { - if (action == null) { - LOG.error("The action must not be null"); - } - else { - myAction = action; - } + public void setAction(@NotNull Action action) { + myAction = action; } public enum Action {