lightning-core/src/main/java/org/apache/directmemory/lightning/internal/InternalSerializerCreator.java [204:257]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        @Override
        public void visitAttributeAnnotation( Class<? extends Annotation> attributeAnnotation )
        {
            // Remove last element and replace it with the real annotation to
            // use right from that moment
            this.attributeAnnotation.pop();
            this.attributeAnnotation.push( attributeAnnotation );
        }

        @Override
        public void visitClassDefine( Type type, Marshaller marshaller )
        {
            Class<?> rawType = TypeUtil.getBaseType( type );
            InternalClassDescriptor classDescriptor = findClassDescriptor( rawType );
            classDescriptor.setMarshaller( marshaller );

            marshallers.put( rawType, marshaller );
        }

        @Override
        public void visitAnnotatedAttribute( PropertyDescriptor propertyDescriptor, Marshaller marshaller )
        {
            InternalClassDescriptor classDescriptor = findClassDescriptor( propertyDescriptor.getDefinedClass() );

            if ( logger.isTraceEnabled() )
            {
                logger.trace( "Found property " + propertyDescriptor.getName() + " ("
                    + propertyDescriptor.getInternalSignature() + ") on type "
                    + propertyDescriptor.getDefinedClass().getCanonicalName() );
            }

            classDescriptor.push( propertyDescriptor );
        }

        @Override
        public void visitPropertyDescriptor( PropertyDescriptor propertyDescriptor, Marshaller marshaller )
        {
            InternalClassDescriptor classDescriptor = findClassDescriptor( propertyDescriptor.getDefinedClass() );

            if ( logger.isTraceEnabled() )
            {
                logger.trace( "Found property " + propertyDescriptor.getName() + " ("
                    + propertyDescriptor.getInternalSignature() + ") on type "
                    + propertyDescriptor.getDefinedClass().getCanonicalName() );
            }

            classDescriptor.push( propertyDescriptor );
        }

        @Override
        public void visitFinalizeSerializerDefinition( SerializerDefinition serializerDefinition )
        {
            // Clean this level up
            this.attributeAnnotation.pop();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



lightning-maven-plugin/src/main/java/org/apache/directmemory/lightning/maven/SerializerDefinitionAnalyser.java [166:219]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        @Override
        public void visitAttributeAnnotation( Class<? extends Annotation> attributeAnnotation )
        {
            // Remove last element and replace it with the real annotation to
            // use right from that moment
            this.attributeAnnotation.pop();
            this.attributeAnnotation.push( attributeAnnotation );
        }

        @Override
        public void visitClassDefine( Type type, Marshaller marshaller )
        {
            Class<?> rawType = TypeUtil.getBaseType( type );
            InternalClassDescriptor classDescriptor = findClassDescriptor( rawType );
            classDescriptor.setMarshaller( marshaller );

            marshallers.put( rawType, marshaller );
        }

        @Override
        public void visitAnnotatedAttribute( PropertyDescriptor propertyDescriptor, Marshaller marshaller )
        {
            InternalClassDescriptor classDescriptor = findClassDescriptor( propertyDescriptor.getDefinedClass() );

            if ( logger.isTraceEnabled() )
            {
                logger.trace( "Found property " + propertyDescriptor.getName() + " ("
                    + propertyDescriptor.getInternalSignature() + ") on type "
                    + propertyDescriptor.getDefinedClass().getCanonicalName() );
            }

            classDescriptor.push( propertyDescriptor );
        }

        @Override
        public void visitPropertyDescriptor( PropertyDescriptor propertyDescriptor, Marshaller marshaller )
        {
            InternalClassDescriptor classDescriptor = findClassDescriptor( propertyDescriptor.getDefinedClass() );

            if ( logger.isTraceEnabled() )
            {
                logger.trace( "Found property " + propertyDescriptor.getName() + " ("
                    + propertyDescriptor.getInternalSignature() + ") on type "
                    + propertyDescriptor.getDefinedClass().getCanonicalName() );
            }

            classDescriptor.push( propertyDescriptor );
        }

        @Override
        public void visitFinalizeSerializerDefinition( SerializerDefinition serializerDefinition )
        {
            // Clean this level up
            this.attributeAnnotation.pop();
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



