@Override
    public void add(Annotation annotation)
    {
        if (annotations.put(annotation.name, annotation) != null)
            throw err("Duplicate annotation: " + annotation.name, null);
    }
Base class for components that contain annotations.

@author David Yu
@created Dec 30, 2010
protostuff-parser/src/main/java/io/protostuff/parser/AnnotationContainer.java