Buggy code:
public static boolean useDownloadNotification ( ) { } public static Boolean useTimer ( ) { } public static long getTimerDuration ( ) { } public static void setTimerDuration ( long timer ) { } public static int getTimerHour ( ) { } public static void setTimerHour ( int hour ) { } public static int getTimerMinute ( ) { } public static void setTimerMinute ( int minute ) { } public static boolean resetOnManualDownload ( ) { } public static boolean useInterval ( ) { } public static long getIntervalDuration ( ) { } public static void setIntervalDuration ( long interval ) { } public static boolean resetOnManualCycle ( ) { } public static long getPinDuration ( ) { } public static void setPinDuration ( long interval ) { } public static boolean keepImages ( ) { } public static boolean deleteOldImages ( ) { } public static boolean checkDuplicates ( ) { } public static boolean shuffleImages ( ) { } public static boolean showAlbumArt ( ) { } public static boolean useWifi ( ) { } public static boolean useMobile ( ) { } public static boolean useDownloadOnConnection ( ) { } public static boolean preserveContext ( ) { } public static boolean changeWhenLocked ( ) { } public static boolean forceInterval ( ) { } public static boolean forceMultiPane ( ) { } public static boolean useDoubleImage ( ) { } public static void setUseDoubleImage ( boolean use ) { } public static boolean useAnimation ( ) { } public static boolean useVerticalAnimation ( ) { } public static int getAnimationSafety ( ) { } public static void setAnimationSafety ( String buffer ) { } public static int getAnimationSpeed ( ) { } public static void setAnimationSpeed ( int speed ) { } public static int getVerticalAnimationSpeed ( ) { } public static void setVerticalAnimationSpeed ( int speed ) { } public static boolean scaleAnimationSpeed ( ) { } public static int getAnimationFrameRate ( ) { } public static void setAnimationFrameRate ( String rate ) { } public static int getTransitionSpeed ( ) { } public static void setTransitionSpeed ( int speed ) { } public static boolean useFade ( ) { } public static boolean useOvershoot ( ) { } public static boolean reverseOvershoot ( ) { } public static int getOvershootIntensity ( ) { } public static void setOvershootIntensity ( int intensity ) { } public static boolean useVerticalOvershoot ( ) { } public static boolean reverseVerticalOvershoot ( ) { } public static int getVerticalOvershootIntensity ( ) { } public static void setVerticalOvershootIntensity ( int intensity ) { } public static boolean useZoomIn ( ) { } public static boolean useZoomOut ( ) { } public static boolean useSpinIn ( ) { } public static boolean reverseSpinIn ( ) { } public static int getSpinInAngle ( ) { } public static void setSpinInAngle ( int angle ) { } public static boolean useSpinOut ( ) { } public static boolean reverseSpinOut ( ) { } public static int getSpinOutAngle ( ) { } public static void setSpinOutAngle ( int angle ) { } public static boolean useAdvanced ( ) { } public static boolean useDoubleTap ( ) { } public static boolean useScrolling ( ) { } public static boolean useExactScrolling ( ) { } public static boolean forceParallax ( ) { } public static boolean useDrag ( ) { } public static boolean reverseDrag ( ) { } public static boolean useScale ( ) { } public static boolean extendScale ( ) { } public static boolean useLongPressReset ( ) { } public static boolean useToast ( ) { } public static String getImagePrefix ( ) { } public static void setImagePrefix ( String prefix ) { } public static int getHistorySize ( ) { <START_BUG> return Integer . parseInt ( AppSettings . prefs . getString ( "history_size" , "5" ) ) ; <END_BUG> } public static boolean useHighResolutionNotificationIcon ( ) { } public static int getNumberSources ( ) { } public static void setSources ( List < Source > listData ) { } public static List < Source > getSources ( ) { } public static Source getSource ( int index ) { } public static int getNumSources ( ) { } public static String getSourceDataPrefix ( String type ) { } public static String getSourceDataHint ( String type ) { } public static String getSourceDataSuffix ( String type ) { } public static int getSourceNum ( int index ) { } public static boolean useSourcePreview ( int index ) { } public static String getSourceType ( int index ) { } public static boolean useSource ( int index ) { } public static String getSourceTitle ( int index ) { } public static String getSourceData ( int index ) { } public static boolean useSourceTime ( int index ) { } public static String getSourceTime ( int index ) { } public static boolean useImageHistory ( ) { } public static int getImageHistorySize ( ) { } public static boolean cacheThumbnails ( ) { } public static int getThumbnailSize ( ) { } public static HashSet < String > getUsedLinks ( ) { } public static void setUsedLinks ( Set < String > usedLinks ) { } public static void addUsedLink ( String link , long time ) { } public static void clearUsedLinks ( ) { } public static void checkUsedLinksSize ( ) { } public static int getNotificationColor ( ) { } public static void setNotificationColor ( int color ) { } public static String getNotificationTitle ( ) { } public static void setNotificationTitle ( String title ) { } public static int getNotificationTitleColor ( ) { } public static void setNotificationTitleColor ( int color ) { } public static int getNotificationIcon ( ) { } public static void setNotificationIcon ( int drawable ) { } public static void setUseNotificationIconFile ( boolean value ) { } public static boolean useNotificationIconFile ( ) { }

Fix:
return Integer . parseInt ( AppSettings . prefs . getString ( "history_size" , "15" ) ) ;