add @Nullable/NotNull annotations, cleanup with intellij inspections

This commit is contained in:
Manfred Karrer 2014-06-30 02:17:26 +02:00
parent 2def1f5971
commit ebf2c559db
101 changed files with 2181 additions and 1613 deletions

View file

@ -2,6 +2,7 @@ package io.bitsquare.btc;
import com.google.bitcoin.core.Transaction;
import java.math.BigInteger;
import org.jetbrains.annotations.Nullable;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
@ -12,7 +13,8 @@ public class BtcValidatorTest
@Test
public void testIsMinSpendableAmount()
{
BigInteger amount = null;
@Nullable BigInteger amount = null;
//noinspection ConstantConditions
assertFalse("tx unfunded, pending", BtcValidator.isMinSpendableAmount(amount));
amount = BigInteger.ZERO;