From 50c0275abaf3574f4018d9d4b47b37faeb0d8852 Mon Sep 17 00:00:00 2001 From: David Pursehouse Date: Sun, 16 Jun 2019 13:33:30 +0900 Subject: [PATCH] FileSnapshot#toString: Suppress ReferenceEquality warnings Reference comparison with EMPTY and MISSING_FILE is intended; these are static instances used as markers, and will always be the same instances. Change-Id: Ic27f5b797bdb9370cf8f6b3b7bb3f1523d4a454c Signed-off-by: David Pursehouse --- .../org/eclipse/jgit/internal/storage/file/FileSnapshot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java index 1de313500..80cf4b3c5 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java @@ -378,7 +378,7 @@ public class FileSnapshot { } /** {@inheritDoc} */ - @SuppressWarnings("nls") + @SuppressWarnings({ "nls", "ReferenceEquality" }) @Override public String toString() { if (this == DIRTY) {