@@ -528,6 +528,7 @@ protected void notifyListenersAfterDraw(Canvas canvas) {
528528 * @param formatter
529529 * @param series
530530 * @return True if all series were successfully added, false otherwise.
531+ * @since 0.9.7
531532 */
532533 public synchronized boolean addSeries (FormatterType formatter , SeriesType ... series ) {
533534 for (SeriesType s : series ) {
@@ -572,7 +573,7 @@ public synchronized boolean addSeries(SeriesType series, FormatterType formatter
572573 * @return The {@link SeriesAndFormatter} that matches the series and rendererClass params, or null if one is not found.
573574 */
574575 protected SeriesAndFormatter <SeriesType , FormatterType > getSeries (SeriesType series , Class <? extends RendererType > rendererClass ) {
575- for (SeriesAndFormatter <SeriesType , FormatterType > thisPair : seriesRegistry . asList () ) {
576+ for (SeriesAndFormatter <SeriesType , FormatterType > thisPair : seriesRegistry ) {
576577 if (thisPair .getSeries () == series && thisPair .getFormatter ().getRendererClass () == rendererClass ) {
577578 return thisPair ;
578579 }
@@ -588,7 +589,7 @@ protected SeriesAndFormatter<SeriesType, FormatterType> getSeries(SeriesType ser
588589 protected List <SeriesAndFormatter <SeriesType , FormatterType >> getSeries (SeriesType series ) {
589590 List <SeriesAndFormatter <SeriesType , FormatterType >> results =
590591 new ArrayList <SeriesAndFormatter <SeriesType , FormatterType >>();
591- for (SeriesAndFormatter <SeriesType , FormatterType > thisPair : seriesRegistry . asList () ) {
592+ for (SeriesAndFormatter <SeriesType , FormatterType > thisPair : seriesRegistry ) {
592593 if (thisPair .getSeries () == series ) {
593594 results .add (thisPair );
594595 }
0 commit comments