Skip to content

Commit 7e18fb0

Browse files
author
Mohammed Ezzat
committed
squid:S3052 - Fields should not be initialized to default values
1 parent 29291fc commit 7e18fb0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎app/src/main/java/com/tzutalin/vision/demo/AutoFitTextureView.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313
public class AutoFitTextureView extends TextureView {
1414

15-
private int mRatioWidth = 0;
16-
private int mRatioHeight = 0;
15+
private int mRatioWidth;
16+
private int mRatioHeight;
1717

1818
public AutoFitTextureView(Context context) {
1919
this(context, null);

‎cnnlibs/src/main/java/com/tzutalin/vision/visionrecognition/CaffeClassifier.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* @param <T>
3535
*/
3636
public abstract class CaffeClassifier<T> {
37-
protected static boolean sInitialized = false;
37+
protected static boolean sInitialized;
3838
static {
3939
try {
4040
System.loadLibrary("objrek");

‎cnnlibs/src/main/java/com/tzutalin/vision/visionrecognition/ObjectDetector.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
public class ObjectDetector extends CaffeClassifier <List<VisionDetRet>>{
3535
private static final String TAG = "ObjectDetector";
36-
private ByteBuffer _handler = null;
36+
private ByteBuffer _handler;
3737

3838
/**
3939
* Creates a ObjectDetector, configured with its model path, trained weights, etc.

‎cnnlibs/src/main/java/com/tzutalin/vision/visionrecognition/SceneClassifier.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
public class SceneClassifier extends CaffeClassifier<List<VisionDetRet>> {
3737
private static final String TAG = "SceneClassifier";
3838
private static final int MODEL_DIM = 224;
39-
private ByteBuffer _handler = null;
39+
private ByteBuffer _handler;
4040

4141
/**
4242
* Creates a SceneClassifier, configured with its model path, trained weights, etc.

0 commit comments

Comments
 (0)