From fed63c785d8a9621250d57eaf32e68bc2b97259f Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Fri, 26 Sep 2008 18:17:23 +0000 Subject: [PATCH] Code formatting. --- .../cdt/internal/core/index/QualifierTypeClone.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/QualifierTypeClone.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/QualifierTypeClone.java index 9efede5fa57..3c7ead4de10 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/QualifierTypeClone.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/QualifierTypeClone.java @@ -21,7 +21,7 @@ import org.eclipse.cdt.internal.core.dom.parser.ITypeContainer; */ public class QualifierTypeClone implements IQualifierType, ITypeContainer, IIndexType { private final IQualifierType delegate; - private IType type = null; + private IType type; public QualifierTypeClone(IQualifierType qualifier) { this.delegate = qualifier; @@ -39,16 +39,16 @@ public class QualifierTypeClone implements IQualifierType, ITypeContainer, IInde return delegate.isVolatile(); } public boolean isSameType(IType type) { - if( type instanceof ITypedef ) - return type.isSameType( this ); - if( !( type instanceof IQualifierType ) ) + if (type instanceof ITypedef) + return type.isSameType(this); + if (!(type instanceof IQualifierType)) return false; IQualifierType pt = (IQualifierType) type; try { - if( isConst() == pt.isConst() && isVolatile() == pt.isVolatile() ) { + if (isConst() == pt.isConst() && isVolatile() == pt.isVolatile()) { IType myType= getType(); - return myType != null && myType.isSameType( pt.getType() ); + return myType != null && myType.isSameType(pt.getType()); } } catch (DOMException e) { }