Example

public class ClassA {
int x;
public void methodA() {
y=x*x;
// ...
}

}
Solution
1. Remove 'x*x' and reconsider the logic of the code
2. Replace 'x*x' with x^2