You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in Admin.Admin.createNewUser(String, String, String, String, String, String) contains a comparison of strings using ==. This can cause unexpected behaviors in the application due to comparing references rather than contents.
To reproduce:
Go to Admin.Admin.createNewUser(String, String, String, String, String, String) in the src/main/java folder
Locate the if statement on line 343
Identify the use of == to compare strings
Expected: The createNewUser method should compare String parameters using the equals() method for value comparison to ensure correct behavior and avoid potential bugs related to string comparison.
Actual: == is used to compare strings which compares their references rather than their contents.
The text was updated successfully, but these errors were encountered:
The code in Admin.Admin.createNewUser(String, String, String, String, String, String) contains a comparison of strings using ==. This can cause unexpected behaviors in the application due to comparing references rather than contents.
To reproduce:
Expected: The createNewUser method should compare String parameters using the equals() method for value comparison to ensure correct behavior and avoid potential bugs related to string comparison.
Actual: == is used to compare strings which compares their references rather than their contents.
The text was updated successfully, but these errors were encountered: