From d62945a3d9222e73553d5d5e0b89574749a90085 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Wed, 5 Sep 2012 20:03:55 -0700 Subject: [PATCH] Cosmetics. --- .../eclipse/cdt/core/index/IIndexFileSet.java | 4 ++-- .../cdt/internal/core/index/IndexFileSet.java | 3 --- .../PDOMProjectIndexLocationConverter.java | 20 +++++++------------ 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFileSet.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFileSet.java index 61256b0efaa..093b8a1449c 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFileSet.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFileSet.java @@ -6,8 +6,8 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * Markus Schorn - initial API and implementation - * Sergey Prigogin (Google) + * Markus Schorn - initial API and implementation + * Sergey Prigogin (Google) *******************************************************************************/ package org.eclipse.cdt.core.index; diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java index 14489d061c3..1db48d50325 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IndexFileSet.java @@ -172,9 +172,6 @@ public class IndexFileSet implements IIndexFileSet { return invert; } - /* (non-Javadoc) - * @see org.eclipse.cdt.core.index.IIndexFileSet#invert() - */ @Override public IIndexFileSet invert() { if (fInverse == null) { diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMProjectIndexLocationConverter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMProjectIndexLocationConverter.java index ddf959d40dd..b06f7bcf375 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMProjectIndexLocationConverter.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMProjectIndexLocationConverter.java @@ -6,8 +6,8 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * Andrew Ferguson (Symbian) - initial API and implementation - * Markus Schorn (Wind River Systems) + * Andrew Ferguson (Symbian) - initial API and implementation + * Markus Schorn (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.core.pdom.dom; @@ -44,23 +44,20 @@ public class PDOMProjectIndexLocationConverter implements IIndexLocationConverte fIgnoreExternal= ignoreWSExternal; } - /* (non-Javadoc) - * @see org.eclipse.cdt.internal.core.pdom.dom.IIndexLocationConverter#fromInternalFormat(java.lang.String) - */ @Override public IIndexFileLocation fromInternalFormat(String raw) { String fullPath = null; URI uri= null; - if(raw.startsWith(EXTERNAL)) { + if (raw.startsWith(EXTERNAL)) { try { uri = new URI(raw.substring(EXTERNAL.length())); - } catch(URISyntaxException use) { + } catch (URISyntaxException e) { } } else { if (raw.startsWith(WS)) { fullPath= raw.substring(WS.length()); } else { - fullPath= fFullPathPrefix+raw; + fullPath= fFullPathPrefix + raw; } final IPath path= new Path(fullPath); if (path.segmentCount() > 1) { @@ -71,13 +68,10 @@ public class PDOMProjectIndexLocationConverter implements IIndexLocationConverte return uri == null ? null : new IndexFileLocation(uri, fullPath); } - /* (non-Javadoc) - * @see org.eclipse.cdt.internal.core.pdom.dom.IIndexLocationConverter#toRaw(java.net.URI) - */ @Override public String toInternalFormat(IIndexFileLocation location) { String fullPath= location.getFullPath(); - if(fullPath!=null) { + if (fullPath != null) { if (fullPath.startsWith(fFullPathPrefix)) { return fullPath.substring(fFullPathPrefix.length()); } @@ -87,6 +81,6 @@ public class PDOMProjectIndexLocationConverter implements IIndexLocationConverte if (fIgnoreExternal) return null; - return EXTERNAL+location.getURI().toString(); + return EXTERNAL + location.getURI().toString(); } }