1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 472765 and Bug 386675: Deprecate/comment on problem with createPath

This commit is contained in:
Jonah Graham 2016-04-12 15:22:13 +01:00
parent 5d6bef7eb5
commit 4d53a33882

View file

@ -71,7 +71,18 @@ public class MapEntrySourceContainer extends AbstractSourceContainer {
*
* @param path
* @return converted string
*
* @deprecated createPath existed as a solution to try and store non-current
* platform paths in an IPath, however that was limited.
* createPath only exists for legacy case (see
* findSourceElements below). See <a href=
* "https://bugs.eclipse.org/bugs/show_bug.cgi?id=472765">Bug
* 472765</a> for more details.
* <p>
* Instead of using createPath, keep paths as Strings and use
* other methods to compare paths.
*/
@Deprecated
public static IPath createPath(String path) {
if (path == null)
return null;