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

Pull request for solving Issue #18 : Rename "markers" which hides the field declared at line 93 [ChartView.java:806] #19

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

Avilad0
Copy link
Collaborator

@Avilad0 Avilad0 commented Feb 15, 2024

Root Cause for the technical debt
There is a class level variable with the name "markers", and the developer has declared a local variable with the same name, i.e. "markers", inside a function [getXAxisMarkerPositions()] in the same class.

Detected By
SonarCloud integration with the github repo

Issue Location
ChartView.java - line 806
Referred class variable at line 93

Solution
Rename the variable "markers" in function getXAxisMarkerPositions()
Solved in: Branch - Avi_Issue18 , Commit - 51c4d45

Renaming local variable, markers, to xAxisMarkers to not be confused with class level variable with same name.
Copy link

sonarcloud bot commented Feb 15, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Avilad0 Avilad0 merged commit ec9b329 into main Feb 15, 2024
1 check passed
Avilad0 pushed a commit that referenced this pull request Feb 17, 2024
Rename variable to match naming convention. Closes #19
Avilad0 pushed a commit that referenced this pull request Feb 17, 2024
Revert "#2 Merging this if statement with the enclosing one"
Avilad0 pushed a commit that referenced this pull request Feb 17, 2024
Avilad0 pushed a commit that referenced this pull request Feb 17, 2024
Avilad0 pushed a commit that referenced this pull request Feb 17, 2024
Changed the name of the exception from a generic to a dedicated one
JSM2512 pushed a commit that referenced this pull request May 7, 2024
Pull request for StartRecording file
JSM2512 pushed a commit that referenced this pull request May 7, 2024
Issue rilling#92 added a few preventive maintenance on the total number of days used for the chairlift feature and a back button taking the user to the previous activity. Also added the same color code on the fragment_chairs_stats layout to respect Professor Rilling prototype on the requirements document
JSM2512 pushed a commit that referenced this pull request May 7, 2024
…announce-temperature

117 settings voice announcements announce temperature
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

Successfully merging this pull request may close these issues.

1 participant