This is my class:
private class Node {
public int[] pivot;
public int pivotIndex;
}
I get warning in Eclipse that pivotIndex is not used, but
that is not true, it is used later in the code in the same file.
Is this a bug in Eclipse?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just the fact that your variable is mentioned elsewhere doesn’t mean it is used. To demonstrate:
Now both
pivotandpivotIndexare marked as unused, and quite justified: the program never needs their value.