Browse Source

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>
stable-4.7
David Ostrovsky 8 years ago
parent
commit
9b4f1913fb
  1. 1
      org.eclipse.jgit.test/tst/org/eclipse/jgit/revwalk/RevFlagSetTest.java

1
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"));
}
}

Loading…
Cancel
Save