Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364562 - [Dev][Query] warnings on org.eclipse.emf.facet.query.java.*
Summary: [Dev][Query] warnings on org.eclipse.emf.facet.query.java.*
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 05:22 EST by Nicolas Bros CLA
Modified: 2020-05-01 11:27 EDT (History)
2 users (show)

See Also:
gdupe: juno+
gdupe: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.