Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspicious comparison of Integer references #30

Open
stp32 opened this issue Apr 7, 2024 · 0 comments
Open

Suspicious comparison of Integer references #30

stp32 opened this issue Apr 7, 2024 · 0 comments

Comments

@stp32
Copy link

stp32 commented Apr 7, 2024

The code inside com.tmobile.kardio.surveiller.apidashboard.APIDashboardTask.doApiDashboardDataLoad() contains a suspicious comparison of integer references which can lead to unexpected behavior and potential bugs.

To reproduce:

  • Go to com.tmobile.kardio.surveiller.apidashboard.APIDashboardTask.doApiDashboardDataLoad() in the src/main/java folder
  • Go to the if statement on line 160
  • Identify the use of != to compare strings

Expected: The use of .equals() to compare the contents of two strings to ensure correct behavior
Actual: != is used which compares references instead of contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant