Buggy code:
} AnnotationValue asyncSupported = annotation . value ( "asyncSupported" ) ; if ( asyncSupported != null ) { servlet . setAsyncSupported ( asyncSupported . asBoolean ( ) ) ; } AnnotationValue initParamsValue = annotation . value ( "initParams" ) ; if ( initParamsValue != null ) { AnnotationInstance [ ] initParamsAnnotations = initParamsValue . asNestedArray ( ) ; if ( ( initParamsAnnotations != null ) && ( ( initParamsAnnotations . length ) > 0 ) ) { List < ParamValueMetaData > initParams = new ArrayList < ParamValueMetaData > ( ) ; for ( AnnotationInstance initParamsAnnotation : initParamsAnnotations ) { ParamValueMetaData initParam = new ParamValueMetaData ( ) ; AnnotationValue initParamName = initParamsAnnotation . value ( "name" ) ; AnnotationValue initParamValue = initParamsAnnotation . value ( ) ; if ( ( initParamName == null ) || ( initParamValue == null ) ) { throw new DeploymentUnitProcessingException ( ( "@WebInitParam<seq2seq4repair_space>requires<seq2seq4repair_space>name<seq2seq4repair_space>and<seq2seq4repair_space>value<seq2seq4repair_space>on<seq2seq4repair_space>" + target ) ) ; } AnnotationValue initParamDescription = initParamsAnnotation . value ( "description" ) ; initParam . setParamName ( initParamName . asString ( ) ) ; initParam . setParamValue ( initParamValue . asString ( ) ) ; if ( initParamDescription != null ) { Descriptions descriptions = ProcessorUtils . getDescription ( initParamDescription . asString ( ) ) ; if ( descriptions != null ) { initParam . setDescriptions ( descriptions ) ; } } initParams . add ( initParam ) ; } servlet . setInitParam ( initParams ) ; } } AnnotationValue descriptionValue = annotation . value ( "description" ) ; AnnotationValue displayNameValue = annotation . value ( "displayName" ) ; AnnotationValue smallIconValue = annotation . value ( "smallIcon" ) ; AnnotationValue largeIconValue = annotation . value ( "largeIcon" ) ; DescriptionGroupMetaData descriptionGroup = ProcessorUtils . getDescriptionGroup ( ( descriptionValue == null ? "" : descriptionValue . asString ( ) ) , ( displayNameValue == null ? "" : displayNameValue . asString ( ) ) , ( smallIconValue == null ? "" : smallIconValue . asString ( ) ) , ( largeIconValue == null ? "" : largeIconValue . asString ( ) ) ) ; if ( descriptionGroup != null ) { servlet . setDescriptionGroup ( descriptionGroup ) ; } ServletMappingMetaData servletMapping = new ServletMappingMetaData ( ) ; servletMapping . setServletName ( servlet . getName ( ) ) ; List < String > urlPatterns = new ArrayList < String > ( ) ; AnnotationValue urlPatternsValue = annotation . value ( "urlPatterns" ) ; if ( urlPatternsValue != null ) { for ( String urlPattern : urlPatternsValue . asStringArray ( ) ) { urlPatterns . add ( urlPattern ) ; } } urlPatternsValue = annotation . value ( ) ; if ( urlPatternsValue != null ) { for ( String urlPattern : urlPatternsValue . asStringArray ( ) ) { urlPatterns . add ( urlPattern ) ; } } if ( ( urlPatterns . size ( ) ) > 0 ) { servletMapping . setUrlPatterns ( urlPatterns ) ; servletMappings . add ( servletMapping ) ; } servlets . add ( servlet ) ; } metaData . setServlets ( servlets ) ; metaData . setServletMappings ( servletMappings ) ; } final List < AnnotationInstance > webFilterAnnotations = index . getAnnotations ( WarAnnotationDeploymentProcessor . webFilter ) ; if ( ( webFilterAnnotations != null ) && ( ( webFilterAnnotations . size ( ) ) > 0 ) ) { FiltersMetaData filters = new FiltersMetaData ( ) ; List < FilterMappingMetaData > filterMappings = new ArrayList < FilterMappingMetaData > ( ) ; for ( final AnnotationInstance annotation : webFilterAnnotations ) { FilterMetaData filter = new FilterMetaData ( ) ; AnnotationTarget target = annotation . target ( ) ; if ( ! ( target instanceof ClassInfo ) ) { throw new DeploymentUnitProcessingException ( ( "@WebFilter<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>allowed<seq2seq4repair_space>at<seq2seq4repair_space>class<seq2seq4repair_space>level<seq2seq4repair_space>" + target ) ) ; } ClassInfo classInfo = ClassInfo . class . cast ( target ) ; filter . setFilterClass ( classInfo . toString ( ) ) ; <START_BUG> AnnotationValue nameValue = annotation . value ( "name" ) ; <END_BUG> if ( ( nameValue == null ) || ( nameValue . asString ( ) . isEmpty ( ) ) ) { filter . setName ( classInfo . toString ( ) ) ; } else { filter . setName ( nameValue . asString ( ) ) ; } AnnotationValue asyncSupported = annotation . value ( "asyncSupported" ) ; if ( asyncSupported != null ) { filter . setAsyncSupported ( asyncSupported . asBoolean ( ) ) ; } AnnotationValue initParamsValue = annotation . value ( "initParams" ) ; if ( initParamsValue != null ) { AnnotationInstance [ ] initParamsAnnotations = initParamsValue . asNestedArray ( ) ; if ( ( initParamsAnnotations != null ) && ( ( initParamsAnnotations . length ) > 0 ) ) { List < ParamValueMetaData > initParams = new ArrayList < ParamValueMetaData > ( ) ; for ( AnnotationInstance initParamsAnnotation : initParamsAnnotations ) { ParamValueMetaData initParam = new ParamValueMetaData ( ) ; AnnotationValue initParamName = initParamsAnnotation . value ( "name" ) ; AnnotationValue initParamValue = initParamsAnnotation . value ( ) ; if ( ( initParamName == null ) || ( initParamValue == null ) ) { throw new DeploymentUnitProcessingException ( ( "@WebInitParam<seq2seq4repair_space>requires<seq2seq4repair_space>name<seq2seq4repair_space>and<seq2seq4repair_space>value<seq2seq4repair_space>on<seq2seq4repair_space>" + target ) ) ; } AnnotationValue initParamDescription = initParamsAnnotation . value ( "description" ) ; initParam . setParamName ( initParamName . asString ( ) ) ; initParam . setParamValue ( initParamValue . asString ( ) ) ; if ( initParamDescription != null ) { Descriptions descriptions = ProcessorUtils . getDescription ( initParamDescription . asString ( ) ) ; if ( descriptions != null ) { initParam . setDescriptions ( descriptions ) ; } } initParams . add ( initParam ) ; } filter . setInitParam ( initParams ) ; } } AnnotationValue descriptionValue = annotation . value ( "description" ) ; AnnotationValue displayNameValue = annotation . value ( "displayName" ) ; AnnotationValue smallIconValue = annotation . value ( "smallIcon" ) ;

Fix:
AnnotationValue nameValue = annotation . value ( "filterName" ) ;