Skip to content

Commit

Permalink
[core] Do not initialize Order fields in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalkrupinski committed Feb 15, 2018
1 parent 8621da3 commit d366a00
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions xchange-core/src/main/java/org/knowm/xchange/dto/Order.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,7 @@ public interface IOrderFlags {
* @param timestamp the absolute time for this order according to the exchange's server, null if not provided
*/
public Order(OrderType type, BigDecimal originalAmount, CurrencyPair currencyPair, String id, Date timestamp) {

this.type = type;
this.originalAmount = originalAmount;
this.currencyPair = currencyPair;
this.id = id;
this.timestamp = timestamp;
this.averagePrice = BigDecimal.ZERO;
this.status = OrderStatus.PENDING_NEW;
this.cumulativeAmount = BigDecimal.ZERO;
this(type, originalAmount, currencyPair, id, timestamp, null, null, null, null);
}

/**
Expand Down

0 comments on commit d366a00

Please sign in to comment.