| Summary: | Don't show "The method * from the type * is never used locally" warning for private methods annotated with standard annotations like @PostConstruct | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | ivan.vergiliev | ||||
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | ivan.vergiliev, Olivier_Thomann, pwebster, remy.suen, srikanth_sankaran, stephan.herrmann | ||||
| Version: | 3.7 | Flags: | srikanth_sankaran:
review+
|
||||
| Target Milestone: | 3.8 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
ivan.vergiliev
Could be a nice addition indeed. What other annotations beside PostConstruct would you like to see supported ? Would also be nice to support @PreDestroy. Ok, these are the two annotations part of the JDK that I also found on my side. Created attachment 202153 [details]
Proposed fix
I'll add regression test once this is reviewed.
Srikanth, please review to make sure I didn't forget any location where standard annotations must be handled. Released for 3.8M2. Regression tests will be added once the code is reviewed. Verified for 3.8M2 using build id: I20110912-0800. |