Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

Remove code duplication from RetrofitObjectPersister.loadDataFromCache and instead use readCacheDataFromFile. #138

Merged

Conversation

jasco
Copy link

@jasco jasco commented Jun 27, 2013

Remove code duplication. RetrofitObjectPersister's base class, InFileObjectPersister, already handles cache hit checking. Move relevant code to RetrofitObjectPersister.readCacheDataFromFile, which is called on cache hit. The only change of behavior is that the retrofit reimplementation logged cache misses.

Also fixed RetrofitSpiceTestService which was failing because the server url was empty.

rciovati added a commit that referenced this pull request Jul 1, 2013
Remove code duplication from RetrofitObjectPersister.loadDataFromCache and instead use readCacheDataFromFile.
@rciovati rciovati merged commit 08141af into stephanenicolas:master Jul 1, 2013
@jasco jasco deleted the RetrofitObjectPersister-cleanup branch July 2, 2013 22:08
ajans pushed a commit to ajans/robospice that referenced this pull request Dec 17, 2014
mcesar pushed a commit to project-draco-hr/robospice that referenced this pull request Oct 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants