From 9b4f1913fb97e5d6bced122b832a9f40e2316bb0 Mon Sep 17 00:00:00 2001 From: David Ostrovsky Date: Sat, 18 Mar 2017 11:29:26 +0100 Subject: [PATCH] RevFlagSetTest: Fix compilation error flagged by error prone This fixes error flagged by error prone: Java compilation in rule '//org.eclipse.jgit.test:jgit' failed: Worker process sent response with exit code: 1. org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java:149: error: [CollectionIncompatibleType] Argument '"bob"' should not be passed to this method; its type String is not compatible with its collection's type argument RevFlag assertFalse(set.contains("bob")); Change-Id: I4a971ce92fee55e28b2ab0c7b716ac20fa9c6709 Signed-off-by: David Ostrovsky --- .../tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java index 154fcdfee4..2b5fc00a53 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java @@ -146,6 +146,5 @@ public class RevFlagSetTest extends RevWalkTestCase { set.add(flag1); assertTrue(set.contains(flag1)); assertFalse(set.contains(flag2)); - assertFalse(set.contains("bob")); } } -- 2.39.5