Use if-else
This commit is contained in:
parent
c40ad3a39d
commit
7e152d4935
|
@ -240,10 +240,8 @@ public abstract class AbstractOrderedMapTest<K, V> extends AbstractIterableMapTe
|
|||
if (!isAllowNullKey()) {
|
||||
final OrderedMap<K, V> finalOrdered = ordered;
|
||||
assertThrows(NullPointerException.class, () -> finalOrdered.previousKey(null));
|
||||
} else {
|
||||
if (!isAllowNullKey()) {
|
||||
assertNull(ordered.previousKey(null));
|
||||
}
|
||||
} else if (!isAllowNullKey()) {
|
||||
assertNull(ordered.previousKey(null));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue