/**
* Ensure that a definition does not have the same modifier more than once
*/
public void checkForDuplicateModifiers(BaseDefinitionNode bdn)
{
ModifiersContainerNode mcn = bdn.getModifiersContainer();
ModifiersSet modifierSet = bdn.getModifiers();
if( mcn != null && modifierSet != null )
{
int modifierNodeCount = mcn.getChildCount();
if( modifierNodeCount > modifierSet.getAllModifiers().length )
{
ModifiersSet tempSet = new ModifiersSet();
// More children than modifiers - must have dups
for( int i = 0; i < modifierNodeCount; ++i )
{
IASNode node = mcn.getChild(i);
if( node instanceof ModifierNode )
{
ModifierNode modNode = (ModifierNode)node;
if( tempSet.hasModifier(modNode.getModifier()) )
{