Tiny fix -- synchronized on arg, not list

git-svn-id: https://zxing.googlecode.com/svn/trunk@2133 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-01-28 15:07:32 +00:00
parent 29f5002aa6
commit 921ba43cb7

View file

@ -181,7 +181,7 @@ public final class ViewfinderView extends View {
public void addPossibleResultPoint(ResultPoint point) {
List<ResultPoint> points = possibleResultPoints;
synchronized (point) {
synchronized (points) {
points.add(point);
int size = points.size();
if (size > MAX_RESULT_POINTS) {