Community
Participate
Working Groups
Build Identifier: 20100917-0705 When the "Unused local or private member" Error/Warning option is selected for Unnecessary Code, public methods are flagged as unused. This should not be the case since these methods, by definition, are declared for outside use. Any method flagged with the 'public' keyword should be excluded from this check. Reproducible: Always Steps to Reproduce: 1. Create a test class and add a public method to it 2. Select either "Error" or "Warning" for "Unused local or private member" 3. Compile the test class and the error/warning will be generated.
Please provide a test case that shows the problem. Once this is done, Ayushman, please follow up.
(In reply to comment #1) > Please provide a test case that shows the problem. > Once this is done, Ayushman, please follow up. My mistake. Please close this issue. The class that I was looking at was a private inner class. This version of Eclipse now reports those method as unused whereas the older version did not. I simply missed that the inner class was private.
Closing as INVALID.
Verified for 3.7 M4