Buggy code:
public class InMemoryBasicStorage extends AbstractModule < StorageConfig > implements IBasicStorage < StorageConfig > { Map < String , InMemoryBasicStorage . TimeSeriesImpl > dataStores = new LinkedHashMap < String , InMemoryBasicStorage . TimeSeriesImpl > ( ) ; List < AbstractProcess > dataSourceDescriptions = new ArrayList < AbstractProcess > ( ) ; public InMemoryBasicStorage ( ) { } @ Override public void start ( ) throws SensorHubException { } @ Override public void stop ( ) throws SensorHubException { } @ Override public AbstractProcess getLatestDataSourceDescription ( ) { } @ Override public List < AbstractProcess > getDataSourceDescriptionHistory ( ) { } @ Override public AbstractProcess getDataSourceDescriptionAtTime ( double time ) { } @ Override public void storeDataSourceDescription ( AbstractProcess process ) { } @ Override public void updateDataSourceDescription ( AbstractProcess process ) { } @ Override public void removeDataSourceDescription ( double time ) { } @ Override public void removeDataSourceDescriptionHistory ( ) { } @ Override public Map < String , ? extends ITimeSeriesDataStore < IDataFilter > > getDataStores ( ) { } @ Override public ITimeSeriesDataStore < IDataFilter > addNewDataStore ( String name , DataComponent recordStructure , DataEncoding recommendedEncoding ) { } @ Override public void backup ( OutputStream os ) { } @ Override public void restore ( InputStream is ) { } @ Override public void sync ( IStorageModule < ? > storage ) { } @ Override public void setAutoCommit ( boolean autoCommit ) { } @ Override public boolean isAutoCommit ( ) { } @ Override public void commit ( ) { } @ Override public void rollback ( ) { } @ Override public void cleanup ( ) throws StorageException { } private class DBRecord implements IDataRecord < DataKey > { DataKey key ; DataBlock data ; public DBRecord ( DataKey key , DataBlock data ) { } @ Override public final DataKey getKey ( ) { } @ Override public final DataBlock getData ( ) { } protected final boolean matches ( DataKey key ) { } protected final boolean matches ( IDataFilter filter ) { } } public class TimeSeriesImpl implements ITimeSeriesDataStore < IDataFilter > { List < InMemoryBasicStorage . DBRecord > recordList = new LinkedList < InMemoryBasicStorage . DBRecord > ( ) ; DataComponent recordDescription ; DataEncoding recommendedEncoding ; BasicEventHandler eventHandler ; TimeSeriesImpl ( DataComponent recordDescription , DataEncoding recommendedEncoding ) { } @ Override public IStorageModule < ? > getParentStorage ( ) { } @ Override public int getNumRecords ( ) { } @ Override public DataComponent getRecordDescription ( ) { } @ Override public DataEncoding getRecommendedEncoding ( ) { } @ Override public DataBlock getDataBlock ( DataKey key ) { } @ Override public Iterator < DataBlock > getDataBlockIterator ( IDataFilter filter ) { } @ Override public IDataRecord < DataKey > getRecord ( DataKey key ) { } @ Override public int getNumMatchingRecords ( IDataFilter filter ) { } @ Override public Iterator < InMemoryBasicStorage . DBRecord > getRecordIterator ( final IDataFilter filter ) { } @ Override public DataKey store ( DataKey key , DataBlock data ) { } @ Override public void update ( DataKey key , DataBlock data ) { } @ Override public void remove ( DataKey key ) { } @ Override public int remove ( IDataFilter filter ) { } @ Override public double [ ] getDataTimeRange ( ) { <START_BUG> double [ ] period = new double [ ] { Long . MAX_VALUE , Long . MIN_VALUE } ; <END_BUG> Iterator < InMemoryBasicStorage . DBRecord > it = recordList . iterator ( ) ; while ( it . hasNext ( ) ) { double timeStamp = it . next ( ) . getKey ( ) . timeStamp ; if ( timeStamp < ( period [ 0 ] ) ) period [ 0 ] = timeStamp ; if ( timeStamp > ( period [ 1 ] ) ) period [ 1 ] = timeStamp ; } return period ; } @ Override public void registerListener ( IEventListener listener ) { } @ Override public void unregisterListener ( IEventListener listener ) { } } }

Fix:
double [ ] period = new double [ ] { Double . MAX_VALUE , Double . MIN_VALUE } ;