Refactoring

This commit is contained in:
7u83 2017-10-08 19:24:56 +02:00
parent a963ce1dea
commit 5e6df1f3c5
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#Sat, 07 Oct 2017 09:35:06 +0200
#Sun, 08 Oct 2017 19:22:43 +0200
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=

View File

@ -351,7 +351,7 @@ public class Exchange {
HashMap<OrderType, SortedSet<Order>> order_books;
IDGenerator order_id = new IDGenerator();
IDGenerator order_id_generator = new IDGenerator();
public class Order {
@ -369,7 +369,7 @@ public class Exchange {
double cost;
Order(Account account, OrderType type, double volume, double limit) {
id = order_id.getNext();
id = order_id_generator.getNext();
this.account = account;
this.type = type;
this.limit = roundMoney(limit);