Apply formatting to Java sources

This is essentially the default IDEA formatting settings, with one tweak
made to allow same-line field annotations (useful particularly in the
case of the @FXML annotation)
This commit is contained in:
Chris Beams 2014-08-26 09:20:10 +02:00
parent 9c3df7375a
commit 7d6ca37d06
No known key found for this signature in database
GPG key ID: 3D214F8F5BC5ED73
168 changed files with 3005 additions and 5439 deletions

View file

@ -18,12 +18,13 @@
package io.bitsquare.btc;
import com.google.bitcoin.core.*;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class FeePolicy
{
public class FeePolicy {
public static final Coin TX_FEE = Transaction.REFERENCE_DEFAULT_MIN_TX_FEE;
public static final Coin ACCOUNT_REGISTRATION_FEE = Coin.CENT; // 0.01
public static final Coin CREATE_OFFER_FEE = Coin.MILLICOIN; // 0.001
@ -36,20 +37,16 @@ public class FeePolicy
private final NetworkParameters params;
@Inject
public FeePolicy(NetworkParameters params)
{
public FeePolicy(NetworkParameters params) {
this.params = params;
}
//TODO other users or dev address? use donation option list? (dev, other users, wikileaks, tor, sub projects (bitcoinj, tomp2p,...)...)
public Address getAddressForRegistrationFee()
{
try
{
public Address getAddressForRegistrationFee() {
try {
return new Address(params, registrationFeeAddress);
} catch (AddressFormatException e)
{
} catch (AddressFormatException e) {
e.printStackTrace();
return null;
}
@ -57,13 +54,10 @@ public class FeePolicy
//TODO get address form arbitrator list
public Address getAddressForCreateOfferFee()
{
try
{
public Address getAddressForCreateOfferFee() {
try {
return new Address(params, createOfferFeeAddress);
} catch (AddressFormatException e)
{
} catch (AddressFormatException e) {
e.printStackTrace();
return null;
}
@ -71,13 +65,10 @@ public class FeePolicy
//TODO get address form the intersection of both traders arbitrator lists
public Address getAddressForTakeOfferFee()
{
try
{
public Address getAddressForTakeOfferFee() {
try {
return new Address(params, takeOfferFeeAddress);
} catch (AddressFormatException e)
{
} catch (AddressFormatException e) {
e.printStackTrace();
return null;
}