Minor tweaks/fixes.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=113868179
This commit is contained in:
cblay 2016-02-04 11:01:05 -08:00 committed by Oliver Woodman
parent 43e1e7e83a
commit 6bc52262db
2 changed files with 7 additions and 4 deletions

View file

@ -70,8 +70,8 @@ public class ContentProtection {
@Override
public int hashCode() {
int hashCode = schemeUriId.hashCode();
hashCode = (37 * hashCode) + (uuid != null ? uuid.hashCode() : 0);
hashCode = (37 * hashCode) + (data != null ? data.hashCode() : 0);
hashCode = (31 * hashCode) + (uuid != null ? uuid.hashCode() : 0);
hashCode = (31 * hashCode) + (data != null ? data.hashCode() : 0);
return hashCode;
}

View file

@ -206,8 +206,11 @@ public final class Loader {
executorThread = Thread.currentThread();
if (!loadable.isLoadCanceled()) {
TraceUtil.beginSection(loadable.getClass().getSimpleName() + ".load()");
loadable.load();
TraceUtil.endSection();
try {
loadable.load();
} finally {
TraceUtil.endSection();
}
}
sendEmptyMessage(MSG_END_OF_SOURCE);
} catch (IOException e) {