package com.paritytrading.parity.match;

class Order {

    private PriceLevel level;

    private long id;

    private long remainingQuantity;

    public Order(PriceLevel level, long id, long size) {
        this.level = level;

        this.id = id;

        this.remainingQuantity = size;
    }

    public PriceLevel getLevel() {
        return level;
    }

    public long getId() {
        return id;
    }

    public long getRemainingQuantity() {
        return remainingQuantity;
    }

    public void reduce(long quantity) {
        remainingQuantity -= quantity;
    }

    public void resize(long size) {
        remainingQuantity = size;
    }

}

@@ -61,16 +61,22 @@
 private 
+final 
 PriceLev
@@ -94,24 +94,30 @@
     private 
+final 
 long id;%0A%0A  

Use 'final' modifier in 'Order'