浏览代码

LFSPointerTest: suppress errorprone error [SelfComparison]

The test #testCompareToSame tests comparing against self intentionally.
Suppress the error raised by errorprone.

Change-Id: If8d70a51ab34ffb6d7f0c9d409746aee8b031408
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.11.0.202102240950-m3
Matthias Sohn 3 年前
父节点
当前提交
083e6fd709
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LFSPointerTest.java

+ 1
- 0
org.eclipse.jgit.lfs.test/tst/org/eclipse/jgit/lfs/lib/LFSPointerTest.java 查看文件

@@ -241,6 +241,7 @@ public class LFSPointerTest {
}

@Test
@SuppressWarnings("SelfComparison")
public void testCompareToSame() throws Exception {
AnyLongObjectId id = LongObjectId.fromString(TEST_SHA256);
LfsPointer lfs = new LfsPointer(id, 4);

正在加载...
取消
保存