Buggy code:
public class Graph extends JComponent implements Scrollable , Clearable { private static final long serialVersionUID = 240L ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private boolean wantData = true ; private boolean wantAverage = true ; private boolean wantDeviation = true ; private boolean wantThroughput = true ; private boolean wantMedian = true ; private CachingStatCalculator model ; private static final int width = 2000 ; private long graphMax = 1 ; private double throughputMax = 1 ; public Graph ( ) { } public Graph ( CachingStatCalculator model ) { } public Dimension getPreferredScrollableViewportSize ( ) { } public int getScrollableUnitIncrement ( Rectangle visibleRect , int orientation , int direction ) { } public int getScrollableBlockIncrement ( Rectangle visibleRect , int orientation , int direction ) { } public boolean getScrollableTracksViewportWidth ( ) { } public boolean getScrollableTracksViewportHeight ( ) { } public void clearData ( ) { } public void enableData ( boolean value ) { } public void enableAverage ( boolean value ) { } public void enableMedian ( boolean value ) { } public void enableDeviation ( boolean value ) { } public void enableThroughput ( boolean value ) { } public void updateGui ( final Sample oneSample ) { } @ Override public void paintComponent ( Graphics g ) { } private void drawSample ( long x , Sample oneSample , Graphics g ) { int height = getHeight ( ) ; Graph . log . debug ( ( "Drawing<seq2seq4repair_space>a<seq2seq4repair_space>sample<seq2seq4repair_space>at<seq2seq4repair_space>" + x ) ) ; int adjustedWidth = ( ( int ) ( x % ( Graph . width ) ) ) ; if ( wantData ) { int data = ( ( int ) ( ( ( oneSample . getData ( ) ) * height ) // ( graphMax ) ) ) ; if ( oneSample . isSuccess ( ) ) { g . setColor ( Color . black ) ; } else { <START_BUG> g . setColor ( YELLOW ) ; <END_BUG> } g . drawLine ( adjustedWidth , ( height - data ) , adjustedWidth , ( ( height - data ) - 1 ) ) ; if ( Graph . log . isDebugEnabled ( ) ) { Graph . log . debug ( ( ( ( "Drawing<seq2seq4repair_space>coords<seq2seq4repair_space>=<seq2seq4repair_space>" + adjustedWidth ) + "," ) + ( height - data ) ) ) ; } } if ( wantAverage ) { int average = ( ( int ) ( ( ( oneSample . getAverage ( ) ) * height ) // ( graphMax ) ) ) ; g . setColor ( Color . blue ) ; g . drawLine ( adjustedWidth , ( height - average ) , adjustedWidth , ( ( height - average ) - 1 ) ) ; } if ( wantMedian ) { int median = ( ( int ) ( ( ( oneSample . getMedian ( ) ) * height ) // ( graphMax ) ) ) ; g . setColor ( purple ) ; g . drawLine ( adjustedWidth , ( height - median ) , adjustedWidth , ( ( height - median ) - 1 ) ) ; } if ( wantDeviation ) { int deviation = ( ( int ) ( ( ( oneSample . getDeviation ( ) ) * height ) // ( graphMax ) ) ) ; g . setColor ( Color . red ) ; g . drawLine ( adjustedWidth , ( height - deviation ) , adjustedWidth , ( ( height - deviation ) - 1 ) ) ; } if ( wantThroughput ) { int throughput = ( ( int ) ( ( ( oneSample . getThroughput ( ) ) * height ) // ( throughputMax ) ) ) ; g . setColor ( dark_green ) ; g . drawLine ( adjustedWidth , ( height - throughput ) , adjustedWidth , ( ( height - throughput ) - 1 ) ) ; } } public long getGraphMax ( ) { } }

Fix:
g . setColor ( Color . YELLOW ) ;