mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
Use UnsupportedOperationException instead of AssertionError.
This commit is contained in:
parent
5d4ffbfa4b
commit
980e479eef
1 changed files with 13 additions and 13 deletions
|
@ -28,7 +28,7 @@ import org.eclipse.cdt.internal.core.dom.parser.cpp.CPPTemplateTypeParameter;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
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 {
|
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.
|
||||||
|
@ -68,7 +68,7 @@ class AutoTypeResolver implements ICPPFunctionTemplate {
|
||||||
}
|
}
|
||||||
|
|
||||||
public ICPPParameter[] getParameters() throws DOMException {
|
public ICPPParameter[] getParameters() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getRequiredArgumentCount() throws DOMException {
|
public int getRequiredArgumentCount() throws DOMException {
|
||||||
|
@ -80,7 +80,7 @@ class AutoTypeResolver implements ICPPFunctionTemplate {
|
||||||
}
|
}
|
||||||
|
|
||||||
public IScope getFunctionScope() throws DOMException {
|
public IScope getFunctionScope() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isStatic() throws DOMException {
|
public boolean isStatic() throws DOMException {
|
||||||
|
@ -104,39 +104,39 @@ class AutoTypeResolver implements ICPPFunctionTemplate {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public char[] getNameCharArray() {
|
public char[] getNameCharArray() {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ILinkage getLinkage() throws CoreException {
|
public ILinkage getLinkage() throws CoreException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IBinding getOwner() throws DOMException {
|
public IBinding getOwner() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IScope getScope() throws DOMException {
|
public IScope getScope() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("rawtypes")
|
@SuppressWarnings("rawtypes")
|
||||||
public Object getAdapter(Class adapter) {
|
public Object getAdapter(Class adapter) {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String[] getQualifiedName() throws DOMException {
|
public String[] getQualifiedName() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public char[][] getQualifiedNameCharArray() throws DOMException {
|
public char[][] getQualifiedNameCharArray() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isGloballyQualified() throws DOMException {
|
public boolean isGloballyQualified() throws DOMException {
|
||||||
throw new AssertionError(UNEXPECTED_CALL);
|
throw new UnsupportedOperationException(UNEXPECTED_CALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue