Buggy code:
public class JDBCMetaDataParser extends MetaDataElementParser { public static JDBCApplicationMetaData parse ( final XMLStreamReader reader , final JDBCApplicationMetaData defaults ) throws XMLStreamException { } private static List < JDBCTypeMappingMetaData > parseTypeMappings ( final XMLStreamReader reader ) throws XMLStreamException { } private static JDBCTypeMappingMetaData parseTypeMapping ( final XMLStreamReader reader ) throws XMLStreamException { } private static JDBCFunctionMappingMetaData parseFunctionMapping ( final XMLStreamReader reader ) throws XMLStreamException { } private static JDBCMappingMetaData parseMapping ( final XMLStreamReader reader ) throws XMLStreamException { } private static ParsedReadAhead parseReadAhead ( final XMLStreamReader reader ) throws XMLStreamException { } private static JDBCLeftJoinMetaData parseLeftJoin ( XMLStreamReader reader ) throws XMLStreamException { } private static ParsedCmpField parseUnknownPk ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static JDBCEntityCommandMetaData parseEntityCommand ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static void parseAttribute ( final XMLStreamReader reader , JDBCEntityCommandMetaData metaData ) throws XMLStreamException { } private static List < JDBCEntityCommandMetaData > parseEntityCommands ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static List < ParsedRelationship > parseRelationships ( final XMLStreamReader reader ) throws XMLStreamException { } private static ParsedRelationship parseRelationship ( final XMLStreamReader reader ) throws XMLStreamException { } private static ParsedRelationshipRole parseEjbRelationshipRole ( final XMLStreamReader reader ) throws XMLStreamException { } private static List < ParsedCmpField > parseKeyFields ( final XMLStreamReader reader ) throws XMLStreamException { } private static JDBCCMPFieldPropertyMetaData parseProperty ( final XMLStreamReader reader ) throws XMLStreamException { final JDBCCMPFieldPropertyMetaData metaData = new JDBCCMPFieldPropertyMetaData ( ) ; for ( Element element : JDBCMetaDataParser . children ( reader ) ) { switch ( element ) { case PROPERTY_NAME : { metaData . setPropertyName ( getElementText ( reader ) ) ; break ; } case COLUMN_NAME : { metaData . setColumnName ( getElementText ( reader ) ) ; break ; } case NOT_NULL : { <START_BUG> metaData . setNotNul ( Boolean . parseBoolean ( getElementText ( reader ) ) ) ; <END_BUG> break ; } case JDBC_TYPE : { metaData . setJdbcType ( JDBCMetaDataParser . getJdbcTypeFromName ( getElementText ( reader ) ) ) ; break ; } case SQL_TYPE : { metaData . setSqlType ( getElementText ( reader ) ) ; break ; } default : { throw unexpectedElement ( reader ) ; } } } return metaData ; } private static List < String > parsePostTableCreate ( XMLStreamReader reader ) throws XMLStreamException { } private static List < ParsedEntity > parseEnterpriseBeans ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static ParsedEntity parseEntity ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static List < String > parseLazyLoadGroups ( XMLStreamReader reader ) throws XMLStreamException { } private static ParsedQuery parseQuery ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static ParsedAudit parseAudit ( final XMLStreamReader reader ) throws XMLStreamException { } private static ParsedCmpField parseAuditField ( XMLStreamReader reader , String fieldName ) throws XMLStreamException { } private static ParsedOptimisticLocking parseOptimisticLocking ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static Map < String , List < String > > parseLoadGroups ( final XMLStreamReader reader ) throws XMLStreamException { } private static void parseLoadGroup ( final XMLStreamReader reader , Map < String , List < String > > groups ) throws XMLStreamException { } private static ParsedCmpField parseCmpField ( final XMLStreamReader reader ) throws XMLStreamException { } private static List < JDBCValueClassMetaData > parseDependentValueClasses ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static JDBCValueClassMetaData parseValueClass ( final XMLStreamReader reader , final ClassLoader classLoader ) throws XMLStreamException { } private static void parseValueProperty ( final XMLStreamReader reader , final Map < String , JDBCValuePropertyMetaData > properties ) throws XMLStreamException { } private static List < JDBCUserTypeMappingMetaData > parseUserTypeMappings ( final XMLStreamReader reader ) throws XMLStreamException { } private static JDBCUserTypeMappingMetaData parseUserTypeMapping ( final XMLStreamReader reader ) throws XMLStreamException { } private static void parseReservedWords ( final XMLStreamReader reader ) throws XMLStreamException { } private static void moveToStart ( final XMLStreamReader reader ) throws XMLStreamException { } private static boolean isEmpty ( final String value ) { } public static int getJdbcTypeFromName ( String name ) { } private static Iterable < Element > children ( final XMLStreamReader reader ) throws XMLStreamException { } }

Fix:
metaData . setNotNull ( Boolean . parseBoolean ( getElementText ( reader ) ) ) ;