For example:
void unaryMinus(int i) {
int x = - -i;
}
The following quick fixes are suggested here:
Remove - operators before the i variable:
void unaryMinus(int i) {
int x = i;
}
Replace - operators with the prefix decrement operator:
void unaryMinus(int i) {
int x = --i;
}
Another example:
void unaryMinus(int i) {
i += - 8;
}
After the quick-fix is applied:
void unaryMinus(int i) {
i -= 8;
}