diff options
author | David Ostrovsky <david@ostrovsky.org> | 2017-03-18 11:29:26 +0100 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2017-03-18 16:47:16 +0100 |
commit | 9b4f1913fb97e5d6bced122b832a9f40e2316bb0 (patch) | |
tree | dfac64b6abd2872ccd1ec33c3a7f8cc8aa64d33c | |
parent | 7e4258113cf899ec707e7214dabc91914c5feb63 (diff) | |
download | jgit-9b4f1913fb97e5d6bced122b832a9f40e2316bb0.tar.gz jgit-9b4f1913fb97e5d6bced122b832a9f40e2316bb0.zip |
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 <david@ostrovsky.org>
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java | 1 |
1 files changed, 0 insertions, 1 deletions
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")); } } |