Remove unused local variables (#10528)

Fixes 26 SAT UnusedLocalVariable findings

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born
2021-04-16 22:35:01 +02:00
committed by GitHub
parent 030329c118
commit b42101addc
20 changed files with 37 additions and 76 deletions

View File

@@ -84,7 +84,6 @@ public class AtomicStampedKeyValueTest {
*/
@Test
public void testCopyIfStampAfterEqual() {
Object key = new Object();
Object val = new Object();
AtomicStampedValue<Object> keyValue = new AtomicStampedValue<>(42L, val);
AtomicStampedValue<Object> copy = keyValue.copyIfStampAfter(42L);
@@ -98,7 +97,6 @@ public class AtomicStampedKeyValueTest {
assertThat(keyValue.getValue(), is(equalTo(copy.getValue())));
// after update they live life of their own
Object key2 = new Object();
Object val2 = new Object();
copy.update(-99L, val2);
@@ -144,7 +142,6 @@ public class AtomicStampedKeyValueTest {
assertThat(keyValue.getValue(), is(equalTo(copy.getValue())));
// after update they live life of their own
Object key2 = new Object();
Object val2 = new Object();
copy.update(-99L, val2);