Commit 6bc52262 by cblay Committed by Oliver Woodman

Minor tweaks/fixes.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=113868179
parent 43e1e7e8
......@@ -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;
}
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment