Buggy code:
public class MapUtils { public static final Map < Object , Object > EMPTY_MAP = UnmodifiableMap . decorate ( new HashMap < Object , Object > ( 1 ) ) ; public static final SortedMap < Object , Object > EMPTY_SORTED_MAP = UnmodifiableSortedMap . decorate ( new TreeMap < Object , Object > ( ) ) ; private static final String INDENT_STRING = "<seq2seq4repair_space>" ; public MapUtils ( ) { } public static < K , V > V getObject ( final Map < ? super K , V > map , final K key ) { } public static < K > String getString ( final Map < ? super K , ? > map , final K key ) { } public static < K > Boolean getBoolean ( final Map < ? super K , ? > map , final K key ) { if ( map != null ) { Object answer = map . get ( key ) ; if ( answer != null ) { if ( answer instanceof Boolean ) { return ( ( Boolean ) ( answer ) ) ; } if ( answer instanceof String ) { <START_BUG> return new Boolean ( ( ( String ) ( answer ) ) ) ; <END_BUG> } if ( answer instanceof Number ) { Number n = ( ( Number ) ( answer ) ) ; return ( n . intValue ( ) ) != 0 ? Boolean . TRUE : Boolean . FALSE ; } } } return null ; } public static < K > Number getNumber ( final Map < ? super K , ? > map , final K key ) { } public static < K > Byte getByte ( final Map < ? super K , ? > map , final K key ) { } public static < K > Short getShort ( final Map < ? super K , ? > map , final K key ) { } public static < K > Integer getInteger ( final Map < ? super K , ? > map , final K key ) { } public static < K > Long getLong ( final Map < ? super K , ? > map , final K key ) { } public static < K > Float getFloat ( final Map < ? super K , ? > map , final K key ) { } public static < K > Double getDouble ( final Map < ? super K , ? > map , final K key ) { } public static < K > Map < ? , ? > getMap ( final Map < ? super K , ? > map , final K key ) { } public static < K , V > V getObject ( Map < K , V > map , K key , V defaultValue ) { } public static < K > String getString ( Map < ? super K , ? > map , K key , String defaultValue ) { } public static < K > Boolean getBoolean ( Map < ? super K , ? > map , K key , Boolean defaultValue ) { } public static < K > Number getNumber ( Map < ? super K , ? > map , K key , Number defaultValue ) { } public static < K > Byte getByte ( Map < ? super K , ? > map , K key , Byte defaultValue ) { } public static < K > Short getShort ( Map < ? super K , ? > map , K key , Short defaultValue ) { } public static < K > Integer getInteger ( Map < ? super K , ? > map , K key , Integer defaultValue ) { } public static < K > Long getLong ( Map < ? super K , ? > map , K key , Long defaultValue ) { } public static < K > Float getFloat ( Map < ? super K , ? > map , K key , Float defaultValue ) { } public static < K > Double getDouble ( Map < ? super K , ? > map , K key , Double defaultValue ) { } public static < K > Map < ? , ? > getMap ( Map < ? super K , ? > map , K key , Map < ? , ? > defaultValue ) { } public static < K > boolean getBooleanValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > byte getByteValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > short getShortValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > int getIntValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > long getLongValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > float getFloatValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > double getDoubleValue ( final Map < ? super K , ? > map , final K key ) { } public static < K > boolean getBooleanValue ( final Map < ? super K , ? > map , final K key , boolean defaultValue ) { } public static < K > byte getByteValue ( final Map < ? super K , ? > map , final K key , byte defaultValue ) { }

Fix:
return Boolean . valueOf ( ( ( String ) ( answer ) ) ) ;