From e56469e20d0f812abeb447b48479eaee35bab334 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Wed, 15 May 2013 16:42:53 -0700 Subject: [PATCH] Cosmetics. --- .../cpp/CPPFunctionTemplateSpecialization.java | 5 +++-- .../core/dom/parser/cpp/CPPSpecialization.java | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunctionTemplateSpecialization.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunctionTemplateSpecialization.java index 9af4428ecae..38784c567ed 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunctionTemplateSpecialization.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPFunctionTemplateSpecialization.java @@ -31,7 +31,8 @@ public class CPPFunctionTemplateSpecialization extends CPPFunctionSpecialization implements ICPPFunctionTemplate, ICPPInternalTemplate { private ObjectMap instances; - public CPPFunctionTemplateSpecialization(ICPPFunction original, ICPPClassType owner, ICPPTemplateParameterMap argumentMap, ICPPFunctionType type, IType[] exceptionSpecs) { + public CPPFunctionTemplateSpecialization(ICPPFunction original, ICPPClassType owner, + ICPPTemplateParameterMap argumentMap, ICPPFunctionType type, IType[] exceptionSpecs) { super(original, owner, argumentMap, type, exceptionSpecs); } @@ -62,7 +63,7 @@ public class CPPFunctionTemplateSpecialization extends CPPFunctionSpecialization public synchronized ICPPTemplateInstance[] getAllInstances() { if (instances != null) { ICPPTemplateInstance[] result= new ICPPTemplateInstance[instances.size()]; - for (int i=0; i < instances.size(); i++) { + for (int i= 0; i < instances.size(); i++) { result[i]= (ICPPTemplateInstance) instances.getAt(i); } return result; diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSpecialization.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSpecialization.java index f43147bdb4e..ae7a6a9d768 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSpecialization.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSpecialization.java @@ -6,8 +6,8 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: - * Andrew Niefer (IBM) - Initial API and implementation - * Markus Schorn (Wind River Systems) + * Andrew Niefer (IBM) - Initial API and implementation + * Markus Schorn (Wind River Systems) *******************************************************************************/ package org.eclipse.cdt.internal.core.dom.parser.cpp; @@ -31,9 +31,9 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.semantics.CPPVisitor; import org.eclipse.core.runtime.PlatformObject; /** - * Base class for all specializations in the AST. Note the specialization may also be created on behalf - * of the index. The index may be concurrently be accessed (read-only) from different threads. So there - * is a need to synchronize non-final members. + * Base class for all specializations in the AST. Note the specialization may also be created on + * behalf of the index. The index may be concurrently be accessed (read-only) from different + * threads. So there is a need to synchronize non-final members. */ public abstract class CPPSpecialization extends PlatformObject implements ICPPSpecialization, ICPPInternalBinding { private final IBinding owner; @@ -73,7 +73,7 @@ public abstract class CPPSpecialization extends PlatformObject implements ICPPSp if (declarations == null) { declarations = new IASTNode[] { node }; } else { - // keep the lowest offset declaration in [0] + // Keep the lowest offset declaration in [0] if (declarations.length > 0 && ((ASTNode) node).getOffset() < ((ASTNode) declarations[0]).getOffset()) { declarations = ArrayUtil.prepend(IASTNode.class, declarations, node);