Applying a quick fix to a finding
Some findings in a code review have quick fixes. A quick fix is an automated solution for a common problem. You apply a quick fix to save time and ensure that a problem is fixed consistently each time. Applying a quick fix ensures that the underlying issue of a finding will be eliminated according to best practices guidelines.
A quick fix is indicated by the following icons:
![]()
To apply a quick fix to a finding
- In the Code Review view, right-click the finding that has a quick fix available for it. The Quick Fix pop-up menu is displayed.
- The first menu choice is always preceded by "Quick Fix" but the task after it varies depending on what the fix is. You can always apply a quick fix to the selected finding. If there are multiple occurrences of the finding in one file, you can also apply the quick fix to all occurrences in that file. Do one of the following:
- To apply the quick fix to the selected finding only, click the Quick Fix menu choice.
- To apply the quick fix to all occurrences of the selected finding in the file, click the Quick Fix All menu choice.
- Follow the directions in each window of the quick fix.
After the quick fix is applied, you return to the Code Review view and see a check mark next to the finding you applied the quick fix to.
Example:The following example screen capture shows the Quick Fix pop-up menu. The fix is to add the serialVersionUID declaration, and it is available for the selected finding and for all occurrences of the finding in the file.
![]()
Parent topic
Fixing a problem found in code review