Bug 116977 - Local variable is not used, warning even though it is
Summary: Local variable is not used, warning even though it is
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 00:10 EST by kappa CLA
Modified: 2006-03-27 07:55 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kappa CLA 2005-11-18 00:10:02 EST
private int count = 8;

public someMethod(int count) {
     this.count = count;
}

here the local variable is used eclipse shows warning it isn't!
Comment 1 Philipe Mulet CLA 2005-11-18 03:02:15 EST
Cannot reproduce, also note that in your example the method has no return type.
Comment 2 kappa CLA 2005-11-18 08:45:56 EST
(In reply to comment #1)
>note that in your example the method has no return type.


whoops sorry, it was suppose to be 

private int count = 8;

public void someMethod(int count) {
     this.count = count;
}
Comment 3 Philipe Mulet CLA 2005-11-18 12:33:50 EST
Please provide complete test case. As I said, I cannot reproduce it. I had
figured adding the missing return type.
Comment 4 Olivier Thomann CLA 2005-11-24 12:15:08 EST
Closing as REMIND.
Please reopen once requested test case is attached.
Comment 5 Philipe Mulet CLA 2006-03-27 07:55:15 EST
reopening to close properly
Comment 6 Philipe Mulet CLA 2006-03-27 07:55:58 EST
closing since didn't hear back in a long time.