package com.xeiam.xchange.btcchina.dto.marketdata;

import java.util.LinkedHashMap;

import com.fasterxml.jackson.annotation.JsonProperty;

public class BTCChinaTicker extends LinkedHashMap<String, BTCChinaTickerObject> {

  private static final long serialVersionUID = 2014080301L;

  private BTCChinaTickerObject ticker;

  /**
   * Constructor
   * 
   * @param ticker
   */
  public BTCChinaTicker(@JsonProperty("ticker") BTCChinaTickerObject ticker) {

    this.ticker = ticker;
  }

  public BTCChinaTickerObject getTicker() {

    return ticker;
  }

  @Override
  public String toString() {

    return "BTCChinaTicker [ticker=" + ticker.toString() + "]";
  }
}

@@ -78,16 +78,74 @@
 shMap;%0A%0A
+import org.apache.commons.lang3.builder.ToStringBuilder;%0A%0A
 import c
@@ -666,52 +666,43 @@
 urn 
-%22BTCChinaTicker %5Bticker=%22 + ticker.t
+ToStringBuilder.reflectionT
 oString(
 ) + 
@@ -701,15 +701,13 @@
 ing(
-) + %22%5D%22
+this)
 ;%0A  

Fix NullPointerException in toString.