Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26218

Android: Resolve Veracode string equality warnings

    Details

    • Story Points:
      1
    • Sprint:
      2018 Sprint 15 SDK

      Description

      Summary:
      The Veracode scanner has sighted the following string equality/comparison issues in Titanium's Android Java code...

      Class Line Description
      MediaModule.java 729 Member variable intentType should use equals() instead of ==
      TiBlob.java 263 Member variable mimeType should use equals() instead of ==.
      TiBlob.java 421 Member variable mimeType should use ! equals() instead of !=.
      TiCameraActivity.java 413 Member variable mediaType should use equals() instead of ==.
      TiCameraActivity.java 682 Member variable mediaType should use equals() instead of ==.

      Note that there are no bugs in the above code.

      String reference equality happens to work for the way it's written, but we should change to use equals() to avoid potential bugs in the future.

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code