| Summary: | [Workbench] Some Tests with unused local variables | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Hitesh <hsoliwal> | ||||
| Component: | UI | Assignee: | Platform UI Triaged <platform-ui-triaged> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Hitesh <hsoliwal> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.7 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Hitesh
Why are the short-hand operators marked as errors now? I thought this was just about unused locals? PW Ah, it's just now catching write-only operations. I'd just delete the variable, since it's still not doing anything, and open another bug to actually write up the test methods for those 2 classes :-) PW (In reply to comment #2) > Ah, it's just now catching write-only operations. I'd just delete the > variable, since it's still not doing anything, and open another bug to actually > write up the test methods for those 2 classes :-) > > PW Yes it is still about unused locals. The point to be noted is that 'a++' is not taken to read the local variable 'a'. While in case of 'a = a + 1', variable 'a' is taken to be read before incrementing. The set of changes in the patch was never reported as errors in my workspace before. There has obviously been some change, and it marks them as errors now. Nonetheless they are unused variables, and regardless of the changes indicated , they do call for attention. I could have done away completely with them, but the question I had was how did they suddenly become unused. (In reply to comment #3) > The set of changes in the patch was never reported as errors in my workspace > before. There has obviously been some change, and it marks them as errors now. > Nonetheless they are unused variables, and regardless of the changes indicated > , they do call for attention. I could have done away completely with them, but > the question I had was how did they suddenly become unused. Was this patch checked in? If so, could you mark this as fixed and open a new bug about actually fixing the tests in question (as they are bogus at the moment)? PW (In reply to comment #4) A new bug to investigate those testcases sounds good to me too. Thanks. Marking as fixed. |