Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364562

Summary: [Dev][Query] warnings on org.eclipse.emf.facet.query.java.*
Product: z_Archived Reporter: Nicolas Bros <nicolas.bros>
Component: EMF-FacetAssignee: Nicolas Bros <nicolas.bros>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P5 CC: emft.facet-inbox, gdupe
Version: unspecifiedFlags: gdupe: juno+
gdupe: kepler+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Nicolas Bros CLA 2011-11-23 05:22:57 EST
I suppressed the deprecation warnings in org.eclipse.emf.facet.query.java.* on internal uses of EMF Facet deprecated (but still maintained) APIs.
Committed in revision 1111.
Comment 1 Gregoire Dupe CLA 2011-11-23 08:07:31 EST
The @SuppressWarnings("deprecation") on the class org.eclipse.emf.facet.query.java.core.IJavaQuery<T, R> is an error. It must be replaced by a deprecation of the interface.

All the methods using a deprecated type in their signature must be deprecated and replaced by another one. The import of deprecated type must be removed and replaced by the use of qualified names. The interfaces containing a deprecated method must be deprecated if the interface is no marked @noimplement or @noextend. 

When a method, a class or an interface is deprecated the developer must explain in the javadoc how to get the same service by using a non deprecated API.

The deprecation of a method, a class or an interface exposed in API must be tracked and in a bug named "[Deprecated] <qualified_name>", where <qualified_name> is the qualifed name of the depreacted element. The bug URL must be added in the deprecation part of the Javadoc.