java/TimeSerie: Fixing the getData method.

For some reasons, the UT are running fine on my computer...