Clean up
This commit is contained in:
parent
abebf06a27
commit
94a0de81b0
1 changed files with 2 additions and 4 deletions
|
|
@ -15,7 +15,6 @@ import com.kabouzeid.gramophone.util.Util;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import hugo.weaving.DebugLog;
|
|
||||||
import retrofit.Response;
|
import retrofit.Response;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -76,7 +75,6 @@ public class ArtistImageFetcher implements DataFetcher<InputStream> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@DebugLog
|
|
||||||
@Override
|
@Override
|
||||||
public void cancel() {
|
public void cancel() {
|
||||||
isCancelled = true;
|
isCancelled = true;
|
||||||
|
|
@ -86,8 +84,8 @@ public class ArtistImageFetcher implements DataFetcher<InputStream> {
|
||||||
if (inputStream != null) {
|
if (inputStream != null) {
|
||||||
try {
|
try {
|
||||||
inputStream.close();
|
inputStream.close();
|
||||||
} catch (Throwable t) {
|
} catch (IOException | IllegalStateException e) {
|
||||||
t.printStackTrace();
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue