1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

remove warnings.

This commit is contained in:
Alain Magloire 2004-09-10 16:08:33 +00:00
parent 1b5c86e832
commit c656bd7009

View file

@ -121,9 +121,8 @@ public class CConventions {
return new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.lowercaseName"), null); //$NON-NLS-1$
}
return CModelStatus.VERIFIED_OK;
} else {
return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.invalidName", name), null); //$NON-NLS-1$
}
return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.invalidName", name), null); //$NON-NLS-1$
}
/**
@ -183,9 +182,8 @@ public class CConventions {
// return new Status(IStatus.WARNING, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.namespace.lowercaseName"), null); //$NON-NLS-1$
// }
return CModelStatus.VERIFIED_OK;
} else {
return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.invalidName", name), null); //$NON-NLS-1$
}
return new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, -1, Util.bind("convention.class.invalidName", name), null); //$NON-NLS-1$
}
/**
@ -282,10 +280,10 @@ public class CConventions {
* object indicating what is wrong with the name
*/
public static IStatus validateMethodName(String name) {
if(name.startsWith("~")) //$NON-NLS-1$
if(name.startsWith("~")) { //$NON-NLS-1$
return validateIdentifier(name.substring(1));
else
return validateIdentifier(name);
}
return validateIdentifier(name);
}
public static boolean isValidIdentifier(String name){