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 { ...@@ -70,8 +70,8 @@ public class ContentProtection {
@Override @Override
public int hashCode() { public int hashCode() {
int hashCode = schemeUriId.hashCode(); int hashCode = schemeUriId.hashCode();
hashCode = (37 * hashCode) + (uuid != null ? uuid.hashCode() : 0); hashCode = (31 * hashCode) + (uuid != null ? uuid.hashCode() : 0);
hashCode = (37 * hashCode) + (data != null ? data.hashCode() : 0); hashCode = (31 * hashCode) + (data != null ? data.hashCode() : 0);
return hashCode; return hashCode;
} }
......
...@@ -206,8 +206,11 @@ public final class Loader { ...@@ -206,8 +206,11 @@ public final class Loader {
executorThread = Thread.currentThread(); executorThread = Thread.currentThread();
if (!loadable.isLoadCanceled()) { if (!loadable.isLoadCanceled()) {
TraceUtil.beginSection(loadable.getClass().getSimpleName() + ".load()"); TraceUtil.beginSection(loadable.getClass().getSimpleName() + ".load()");
loadable.load(); try {
TraceUtil.endSection(); loadable.load();
} finally {
TraceUtil.endSection();
}
} }
sendEmptyMessage(MSG_END_OF_SOURCE); sendEmptyMessage(MSG_END_OF_SOURCE);
} catch (IOException e) { } 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