diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPAnnotation.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPAnnotation.java index 21871410093..49c1d17a7a8 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPAnnotation.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPAnnotation.java @@ -22,7 +22,6 @@ import org.eclipse.cdt.core.dom.ast.cpp.ICPPVariable; import org.eclipse.cdt.internal.core.pdom.dom.c.PDOMCAnnotation; class PDOMCPPAnnotation { - // "Mutable" shares the same offset as "inline" because // only fields can be mutable and only functions can be inline. public static final int MUTABLE_OFFSET = PDOMCAnnotation.INLINE_OFFSET; @@ -42,7 +41,7 @@ class PDOMCPPAnnotation { public static final int OVERRIDE_OFFSET = 5; public static final int FINAL_OFFSET = 6; public static final int MAX_EXTRA_OFFSET= FINAL_OFFSET; - + /** * Encodes storage class specifiers and other annotation, including * C++-specific annotation, from an IBinding as a bit vector. @@ -62,14 +61,12 @@ class PDOMCPPAnnotation { ICPPField variable = (ICPPField) binding; modifiers |= (variable.isMutable() ? 1 : 0) << MUTABLE_OFFSET; } - } - else { + } else { if (binding instanceof ICPPFunction) { if (((ICPPFunction) binding).isExternC()) { modifiers |= 1 << EXTERN_C_OFFSET; } - } - if (binding instanceof ICPPVariable) { + } else if (binding instanceof ICPPVariable) { if (((ICPPVariable) binding).isExternC()) { modifiers |= 1 << EXTERN_C_OFFSET; }