Commit bd95637d authored by bauerb's avatar bauerb Committed by Commit bot

Use name() instead of toString() and fix comparison order in ModelType.

BUG=none

Review URL: https://codereview.chromium.org/511253002

Cr-Commit-Position: refs/heads/master@{#292451}
parent 2b2408bc
......@@ -90,7 +90,7 @@ public enum ModelType {
private final boolean mNonInvalidationType;
ModelType(String modelType, boolean nonInvalidationType) {
assert nonInvalidationType || modelType.equals(toString());
assert nonInvalidationType || name().equals(modelType);
mModelType = modelType;
mNonInvalidationType = nonInvalidationType;
}
......
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 to comment