CameraBridgeViewBase synchronizes on a final field

Synchronizing against non-final fields is advised against.
pull/8310/head
Philipp Hasper 8 years ago committed by GitHub
parent 6f39f9a6a0
commit ec38ef9b10
  1. 2
      modules/java/generator/src/java/android+CameraBridgeViewBase.java

@ -38,7 +38,7 @@ public abstract class CameraBridgeViewBase extends SurfaceView implements Surfac
private Bitmap mCacheBitmap;
private CvCameraViewListener2 mListener;
private boolean mSurfaceExist;
private Object mSyncObject = new Object();
private final Object mSyncObject = new Object();
protected int mFrameWidth;
protected int mFrameHeight;

Loading…
Cancel
Save