From 980e479eef58d92adacfa98613e8a96f53236a08 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Mon, 29 Mar 2010 00:44:08 +0000 Subject: [PATCH] Use UnsupportedOperationException instead of AssertionError. --- .../cpp/semantics/AutoTypeResolver.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/AutoTypeResolver.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/AutoTypeResolver.java index 7f247be8ad2..134b4a59936 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/AutoTypeResolver.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/AutoTypeResolver.java @@ -28,10 +28,10 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPTemplateTypeParameter; import org.eclipse.core.runtime.CoreException; /** - * This class represents a template function used for deducing 'auto' types ( C++0x: 7.1.6.4). + * This class represents a template function used for deducing 'auto' types (C++0x: 7.1.6.4). */ class AutoTypeResolver implements ICPPFunctionTemplate { - // Template parameter of the function. This parameter is used in place of 'auto' keyword. + // Template parameter of the function. This parameter is used in place of 'auto' keyword. public static final ICPPTemplateTypeParameter AUTO_TYPE = new CPPTemplateTypeParameter(new CPPASTName(), false); private static final ICPPTemplateTypeParameter[] TEMPLATE_PARAMETERS = @@ -68,7 +68,7 @@ class AutoTypeResolver implements ICPPFunctionTemplate { } public ICPPParameter[] getParameters() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public int getRequiredArgumentCount() throws DOMException { @@ -80,7 +80,7 @@ class AutoTypeResolver implements ICPPFunctionTemplate { } public IScope getFunctionScope() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public boolean isStatic() throws DOMException { @@ -104,39 +104,39 @@ class AutoTypeResolver implements ICPPFunctionTemplate { } public String getName() { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public char[] getNameCharArray() { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public ILinkage getLinkage() throws CoreException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public IBinding getOwner() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public IScope getScope() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } @SuppressWarnings("rawtypes") public Object getAdapter(Class adapter) { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public String[] getQualifiedName() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public char[][] getQualifiedNameCharArray() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } public boolean isGloballyQualified() throws DOMException { - throw new AssertionError(UNEXPECTED_CALL); + throw new UnsupportedOperationException(UNEXPECTED_CALL); } } \ No newline at end of file