1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 17:56:01 +02:00

Compiler warnings.

This commit is contained in:
Sergey Prigogin 2008-04-20 00:14:46 +00:00
parent fd24289643
commit 6ec98ed101
4 changed files with 5 additions and 10 deletions

View file

@ -143,7 +143,7 @@ public abstract class CPPTemplateDefinition extends PlatformObject implements IC
if (args.length == arguments.length) { if (args.length == arguments.length) {
int j = 0; int j = 0;
for (; j < args.length; j++) { for (; j < args.length; j++) {
if (!(args[j].isSameType(arguments[j]))) if (!args[j].isSameType(arguments[j]))
break; break;
} }
if (j == args.length) { if (j == args.length) {

View file

@ -689,8 +689,8 @@ public class CPPTemplates {
} }
/** /**
* @param type * @param type a type to instantiate.
* @param arguments * @param argMap a mapping between template parameters and the corresponding arguments.
*/ */
public static IType instantiateType(IType type, ObjectMap argMap) { public static IType instantiateType(IType type, ObjectMap argMap) {
if (argMap == null) if (argMap == null)

View file

@ -111,7 +111,6 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
/** /**
* Returns the BTree for the nested bindings. * Returns the BTree for the nested bindings.
* @return
* @throws CoreException * @throws CoreException
*/ */
public BTree getNestedBindingsIndex() throws CoreException { public BTree getNestedBindingsIndex() throws CoreException {
@ -119,7 +118,6 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
} }
@Override @Override
@SuppressWarnings("hiding")
public void accept(final IPDOMVisitor visitor) throws CoreException { public void accept(final IPDOMVisitor visitor) throws CoreException {
if (visitor instanceof IBTreeVisitor) { if (visitor instanceof IBTreeVisitor) {
getIndex().accept((IBTreeVisitor) visitor); getIndex().accept((IBTreeVisitor) visitor);
@ -151,7 +149,6 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
getIndex().insert(child.getRecord()); getIndex().insert(child.getRecord());
} }
@SuppressWarnings("hiding")
public PDOMNode getNode(int record) throws CoreException { public PDOMNode getNode(int record) throws CoreException {
switch (PDOMNode.getNodeType(pdom, record)) { switch (PDOMNode.getNodeType(pdom, record)) {
case POINTER_TYPE: case POINTER_TYPE:
@ -296,12 +293,11 @@ public abstract class PDOMLinkage extends PDOMNamedNode implements IIndexLinkage
/** /**
* Callback informing the linkage that a name is about to be deleted. This is * Callback informing the linkage that a name is about to be deleted. This is
* used to do additional processing, like removing inheritance relationships. * used to do additional processing, like removing inheritance relationships.
* @param pdomName the name that was inserted into the linkage * @param name the name that is about to be deleted
* @param name the name that caused the insertion
* @throws CoreException * @throws CoreException
* @since 4.0 * @since 4.0
*/ */
public void onDeleteName(PDOMName nextName) throws CoreException { public void onDeleteName(PDOMName name) throws CoreException {
} }
/** /**

View file

@ -278,7 +278,6 @@ class PDOMCLinkage extends PDOMLinkage implements IIndexCBindingConstants {
} }
@Override @Override
@SuppressWarnings("hiding")
public PDOMNode getNode(int record) throws CoreException { public PDOMNode getNode(int record) throws CoreException {
if (record == 0) if (record == 0)
return null; return null;