From b5bf6ea6ee864ab0f10551a2630fe16f6d0a55bf Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Fri, 9 Mar 2012 13:12:27 +0400 Subject: [PATCH] Skip warnings in the pregenerated equals and hashcode: values nullability may change in the future. --- plugins/git4idea/src/git4idea/repo/GitBranchTrackInfo.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/git4idea/src/git4idea/repo/GitBranchTrackInfo.java b/plugins/git4idea/src/git4idea/repo/GitBranchTrackInfo.java index f7b79d1e6345..bc70772c27e5 100644 --- a/plugins/git4idea/src/git4idea/repo/GitBranchTrackInfo.java +++ b/plugins/git4idea/src/git4idea/repo/GitBranchTrackInfo.java @@ -64,6 +64,7 @@ public class GitBranchTrackInfo { return String.format("%s %s %s %b", myBranch, myRemote, myRemoteBranch, myMerge); } + @SuppressWarnings("ConstantConditions") @Override public boolean equals(Object o) { @@ -80,6 +81,7 @@ public class GitBranchTrackInfo { return true; } + @SuppressWarnings("ConstantConditions") @Override public int hashCode() { int result = myBranch != null ? myBranch.hashCode() : 0;