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

Use .equals() for string comparisons in ModelType.

This fixes a FindBugs warning.

NOTRY=true
BUG=none

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

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