Skip to content

Conversation

@pillai45
Copy link

The changes are made in the multicamera APP code to address the Coverity Issues

One part of the issue is solved here

Tracked-On: OAM-106764

The changes are made in the multicamera APP code to address the Coverity Issues

One part of the issue is solved here

Tracked-On: OAM-106764
Signed-off-by: pillaive <venkatesh.pillai@intel.com>
System.out.println(TAG +" camera close exception");
}

if (null != imageReader) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this wont create leak ?

cameraDevice.close();
cameraDevice = null;
}
if (null != imageReader) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, it wont create leak ?


/** Converts the given double to a localized String version. */
private String toLocalNumber(double n) {
/*private String toLocalNumber(double n) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this commented code, if not used


checkPermissions();


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove newly added unwanted line

mCamera_BackView.getHeight());
} else {
mCamera_BackView.setSurfaceTextureListener(mCamera.textureListener);
if(mCamera != null)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use Objects.isNull

public class SettingsActivity extends AppCompatActivity {
private String TAG = "settings";


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

mRoundedThumbnailView = findViewById(R.id.rounded_thumbnail_view);

checkPermissions();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

fileDetails[0] = dateFormat.format(date);
fileDetails[1] = fileDetails[0] + ".jpg";
fileDetails[2] = "image/jpeg";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

@sysopenci sysopenci added the Stale Stale label for inactive open prs label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stale Stale label for inactive open prs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants