]> source.dussan.org Git - jgit.git/commitdiff
RevFlagSetTest: Fix compilation error flagged by error prone 44/93344/1
authorDavid Ostrovsky <david@ostrovsky.org>
Sat, 18 Mar 2017 10:29:26 +0000 (11:29 +0100)
committerDavid Ostrovsky <david@ostrovsky.org>
Sat, 18 Mar 2017 15:47:16 +0000 (16:47 +0100)
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 <david@ostrovsky.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java

index 154fcdfee44e8878217d33a346f8c67856049dc1..2b5fc00a53782caaa9077311a6772a997776e608 100644 (file)
@@ -146,6 +146,5 @@ public class RevFlagSetTest extends RevWalkTestCase {
                set.add(flag1);
                assertTrue(set.contains(flag1));
                assertFalse(set.contains(flag2));
-               assertFalse(set.contains("bob"));
        }
 }