Summary: | [DCR] Special marker to remove unused argument warning | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eric Estievenart <eric.estievenart> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Eric Estievenart
2003-10-14 02:14:45 EDT
If we do go into this direction, then we will need to come up with a marker for each kind of optional diagnosis... we need to be careful. I agree though that the current behavior isn't happy. What do you mean needing to be careful ? You think 1. it will add lot of extra comments in the code ? 2. Or we need to add several different markers ? With all warnings enabled on quite large projects, and after necessary cleanings, there are only a very few warnings which need to be disabled by hand (provided the code quality is correct), so 1. is not an issue for me. For 2, provided there is a quick fix to 'hide' the warning, nobody would have to know all the markers... This would be very helpful for EJB development. ejbPostCreate requires you to list all the parameters of ejbCreate, but the method is usually empty (and therefore, the parameters are unused). Turning off the warning for that method would be great. Not for 3.0 reopening Can be achieved in 1.5 mode using @SuppressWarnings annotation. |