From 48930c212f74bfb0e3e930a6666f56e92569b3d0 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 19 Jan 2009 03:34:20 +0000 Subject: [PATCH] Cosmetics. --- .../org/eclipse/cdt/core/index/IndexLocationFactory.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IndexLocationFactory.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IndexLocationFactory.java index 578dcb88be5..683c6ec378f 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IndexLocationFactory.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IndexLocationFactory.java @@ -50,7 +50,7 @@ public class IndexLocationFactory { */ public static IPath getPath(IIndexFileLocation location) { String fp = location.getFullPath(); - if(fp!=null) { + if (fp != null) { return new Path(fp); } return getAbsolutePath(location); @@ -63,7 +63,7 @@ public class IndexLocationFactory { * URI is not a filesystem path. */ public static IPath getAbsolutePath(IIndexFileLocation location) { - return URIUtil.toPath(location.getURI()); + return URIUtil.toPath(location.getURI()); } /** @@ -141,11 +141,11 @@ public class IndexLocationFactory { */ public static IIndexFileLocation getIFL(ITranslationUnit tu) { IResource res = tu.getResource(); - if(res instanceof IFile) { + if (res instanceof IFile) { return getWorkspaceIFL((IFile)res); } IPath location = tu.getLocation(); - if(location!=null) { + if (location != null) { return getExternalIFL(location); } return null;