Buggy code:
private Align [ ] yLabelsAlign ; private float mXLabelsPadding = 0 ; private float mYLabelsPadding = 0 ; private float mYLabelsVerticalPadding = 2 ; private Align [ ] yAxisAlign ; private int mXLabelsColor = TEXT_COLOR ; private int [ ] mYLabelsColor = new int [ ] { TEXT_COLOR } ; private boolean mXRoundedLabels = true ; private NumberFormat mXLabelFormat ; private NumberFormat [ ] mYLabelFormat ; private float mBarWidth = - 1 ; private double mZoomInLimitX = 0 ; private double mZoomInLimitY = 0 ; public enum Orientation { HORIZONTAL ( 0 ) , VERTICAL ( 90 ) ; private int mAngle = 0 ; private Orientation ( int angle ) { } public int getAngle ( ) { } } public XYMultipleSeriesRenderer ( ) { } public XYMultipleSeriesRenderer ( int scaleNumber ) { } public void initAxesRange ( int scales ) { } public void initAxesRangeForScale ( int i ) { } public XYMultipleSeriesRenderer . Orientation getOrientation ( ) { } public void setOrientation ( XYMultipleSeriesRenderer . Orientation orientation ) { } public String getXTitle ( ) { } public void setXTitle ( String title ) { } public String getYTitle ( ) { } public String getYTitle ( int scale ) { } public void setYTitle ( String title ) { } public void setYTitle ( String title , int scale ) { } public float getAxisTitleTextSize ( ) { } public void setAxisTitleTextSize ( float textSize ) { } public double getXAxisMin ( ) { } public void setXAxisMin ( double min ) { } public boolean isMinXSet ( ) { } public double getXAxisMax ( ) { } public void setXAxisMax ( double max ) { } public boolean isMaxXSet ( ) { } public double getYAxisMin ( ) { } public void setYAxisMin ( double min ) { } public boolean isMinYSet ( ) { } public double getYAxisMax ( ) { } public void setYAxisMax ( double max ) { } public boolean isMaxYSet ( ) { } public double getXAxisMin ( int scale ) { } public void setXAxisMin ( double min , int scale ) { } public boolean isMinXSet ( int scale ) { } public double getXAxisMax ( int scale ) { } public void setXAxisMax ( double max , int scale ) { } public boolean isMaxXSet ( int scale ) { } public double getYAxisMin ( int scale ) { } public void setYAxisMin ( double min , int scale ) { } public boolean isMinYSet ( int scale ) { } public double getYAxisMax ( int scale ) { } public void setYAxisMax ( double max , int scale ) { } public boolean isMaxYSet ( int scale ) { } public int getXLabels ( ) { } public void setXLabels ( int xLabels ) { } public void addTextLabel ( double x , String text ) { } public synchronized void addXTextLabel ( double x , String text ) { } public synchronized void removeXTextLabel ( double x ) { } public synchronized String getXTextLabel ( Double x ) { } public synchronized Double [ ] getXTextLabelLocations ( ) { } public void clearTextLabels ( ) { } public synchronized void clearXTextLabels ( ) { } public boolean isXRoundedLabels ( ) { } public void setXRoundedLabels ( boolean rounded ) { } public void addYTextLabel ( double y , String text ) { } public void removeYTextLabel ( double y ) { } public synchronized void addYTextLabel ( double y , String text , int scale ) { } public synchronized void removeYTextLabel ( double y , int scale ) { } public String getYTextLabel ( Double y ) { } public synchronized String getYTextLabel ( Double y , int scale ) { } public Double [ ] getYTextLabelLocations ( ) { } public synchronized Double [ ] getYTextLabelLocations ( int scale ) { <START_BUG> return mYTextLabels . get ( scale ) . keySet ( ) . toArray ( new Double [ mYTextLabels . size ( ) ] ) ; <END_BUG> } public void clearYTextLabels ( ) { } public synchronized void clearYTextLabels ( int scale ) { } public int getYLabels ( ) { } public void setYLabels ( int yLabels ) { } public float getBarWidth ( ) { } public void setBarWidth ( float width ) { } public boolean isPanEnabled ( ) { } public boolean isPanXEnabled ( ) { } public boolean isPanYEnabled ( ) { } public void setPanEnabled ( boolean enabledX , boolean enabledY ) { } @ Override public void setPanEnabled ( final boolean enabled ) { } public boolean isZoomEnabled ( ) { } public boolean isZoomXEnabled ( ) { } public boolean isZoomYEnabled ( ) { } public void setZoomEnabled ( boolean enabledX , boolean enabledY ) { } public double getBarsSpacing ( ) { } public double getBarSpacing ( ) { } public void setBarSpacing ( double spacing ) { } public int getMarginsColor ( ) { } public void setMarginsColor ( int color ) { } public int getGridColor ( int scale ) { } public void setGridColor ( int color ) { } public void setGridColor ( int color , int scale ) { } public double [ ] getPanLimits ( ) { } public void setPanLimits ( double [ ] panLimits ) { } public double [ ] getZoomLimits ( ) { } public void setZoomLimits ( double [ ] zoomLimits ) { } public float getXLabelsAngle ( ) { } public void setXLabelsAngle ( float angle ) { } public float getYLabelsAngle ( ) { } public void setYLabelsAngle ( float angle ) { } public float getPointSize ( ) { } public void setPointSize ( float size ) { } public void setRange ( double [ ] range ) { } public void setRange ( double [ ] range , int scale ) { } public boolean isInitialRangeSet ( ) { }

Fix:
return mYTextLabels . get ( scale ) . keySet ( ) . toArray ( new Double [ mYTextLabels . get ( scale ) . size ( ) ] ) ;