Buggy code:
public class WelcomeParser extends DefaultHandler { private static final String TAG_WELCOME_PAGE = "welcomePage" ; private static final String TAG_INTRO = "intro" ; private static final String TAG_ITEM = "item" ; private static final String TAG_BOLD = "b" ; private static final String TAG_ACTION = "action" ; private static final String TAG_PARAGRAPH = "p" ; private static final String TAG_TOPIC = "topic" ; private static final String ATT_TITLE = "title" ; private static final String ATT_FORMAT = "format" ; private static final String ATT_PLUGIN_ID = "pluginId" ; private static final String ATT_CLASS = "class" ; private static final String ATT_ID = "id" ; private static final String ATT_HREF = "href" ; private static final String FORMAT_WRAP = "wrap" ; private static final String FORMAT_NOWRAP = "nowrap" ; private static final char DELIMITER = '\n' ; private SAXParser parser ; private String title ; private WelcomeItem introItem ; private ArrayList items = new ArrayList ( ) ; private String format ; private class WelcomeContentHandler implements ContentHandler { protected ContentHandler parent ; public void setParent ( ContentHandler p ) { } public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public void endDocument ( ) throws SAXException { } public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { } public void endPrefixMapping ( String prefix ) throws SAXException { } public void ignorableWhitespace ( char [ ] ch , int start , int length ) throws SAXException { } public void processingInstruction ( String target , String data ) throws SAXException { } public void setDocumentLocator ( Locator locator ) { } public void skippedEntity ( String name ) throws SAXException { } public void startDocument ( ) throws SAXException { } public void startElement ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { } public void startPrefixMapping ( String prefix , String uri ) throws SAXException { } } private class WelcomePageHandler extends WelcomeParser . WelcomeContentHandler { public WelcomePageHandler ( String newTitle ) { } public void startElement ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { } } private class ItemHandler extends WelcomeParser . WelcomeContentHandler { private ArrayList boldRanges = new ArrayList ( ) ; protected ArrayList wrapRanges = new ArrayList ( ) ; private ArrayList actionRanges = new ArrayList ( ) ; private ArrayList pluginIds = new ArrayList ( ) ; private ArrayList classes = new ArrayList ( ) ; private ArrayList helpRanges = new ArrayList ( ) ; private ArrayList helpIds = new ArrayList ( ) ; private ArrayList helpHrefs = new ArrayList ( ) ; private StringBuffer text = new StringBuffer ( ) ; protected int offset = 0 ; protected int textStart ; protected int wrapStart ; private class BoldHandler extends WelcomeParser . WelcomeContentHandler { public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { } } private class ActionHandler extends WelcomeParser . WelcomeContentHandler { public ActionHandler ( String pluginId , String className ) { } public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { } } private class TopicHandler extends WelcomeParser . WelcomeContentHandler { public TopicHandler ( String helpId , String href ) { } public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { } } protected WelcomeItem constructWelcomeItem ( ) { } public void characters ( char [ ] ch , int start , int length ) throws SAXException { } public void startElement ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { } public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { } } private class IntroItemHandler extends WelcomeParser . ItemHandler { public void endElement ( String namespaceURI , String localName , String qName ) throws SAXException { } } public WelcomeParser ( ) { } public WelcomeItem getIntroItem ( ) { } public WelcomeItem [ ] getItems ( ) { } public String getTitle ( ) { } public boolean isFormatWrapped ( ) { <START_BUG> return format . equals ( WelcomeParser . FORMAT_WRAP ) ; <END_BUG> } public void parse ( InputStream is ) { } public void startElement ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { } }

Fix:
return WelcomeParser . FORMAT_WRAP . equals ( format ) ;