From 25a5913518ed376bff6fb20bafe0b88962c18b08 Mon Sep 17 00:00:00 2001 From: Zhangmei Li Date: Wed, 10 Feb 2021 19:51:58 +0800 Subject: [PATCH] fix style Change-Id: Ie772df1d7f7d3f214908a3a7ebbc9288a364e588 --- .../baidu/hugegraph/unit/iterator/FilterIteratorTest.java | 1 - .../com/baidu/hugegraph/unit/iterator/LimitIteratorTest.java | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/baidu/hugegraph/unit/iterator/FilterIteratorTest.java b/src/test/java/com/baidu/hugegraph/unit/iterator/FilterIteratorTest.java index 4f3ec6cbd..3e62b2036 100644 --- a/src/test/java/com/baidu/hugegraph/unit/iterator/FilterIteratorTest.java +++ b/src/test/java/com/baidu/hugegraph/unit/iterator/FilterIteratorTest.java @@ -41,7 +41,6 @@ public class FilterIteratorTest extends BaseUnitTest { @Test public void testFilter() { - AtomicInteger valuesCount = new AtomicInteger(0); Iterator values = DATA.iterator(); diff --git a/src/test/java/com/baidu/hugegraph/unit/iterator/LimitIteratorTest.java b/src/test/java/com/baidu/hugegraph/unit/iterator/LimitIteratorTest.java index 2b9fb71b8..0d61c067b 100644 --- a/src/test/java/com/baidu/hugegraph/unit/iterator/LimitIteratorTest.java +++ b/src/test/java/com/baidu/hugegraph/unit/iterator/LimitIteratorTest.java @@ -41,7 +41,6 @@ public class LimitIteratorTest extends BaseUnitTest { @Test public void testLimit() { - AtomicInteger valuesCount = new AtomicInteger(0); Iterator values = DATA.iterator(); @@ -144,7 +143,7 @@ public void testRemove() { List list = new ArrayList<>(DATA); Iterator results = new LimitIterator<>(list.iterator(), - val -> false); + val -> false); Assert.assertEquals(ImmutableList.of(1, 2, 3, 4), list); @@ -160,7 +159,7 @@ public void testClose() throws Exception { CloseableItor vals = new CloseableItor<>(DATA.iterator()); LimitIterator results = new LimitIterator<>(vals, - val -> true); + val -> true); Assert.assertFalse(vals.closed()); results.close();