Skip to content
Snippets Groups Projects
Commit 457318ef authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixes SparseSetArray#add return logic"

parents cce89e27 2c82a4b5
No related branches found
No related tags found
No related merge requests found
......@@ -37,10 +37,10 @@ public class SparseSetArray<T> {
mData.put(n, set);
}
if (set.contains(value)) {
return true;
return false;
}
set.add(value);
return false;
return true;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment