Skip to content

Commit

Permalink
Changed toArray() to be compatible with new vm. Rebuilt.
Browse files Browse the repository at this point in the history
  • Loading branch information
shannah committed Jan 30, 2015
1 parent a754fab commit 2e87428
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Binary file modified dist/CN1aChartEngine.cn1lib
Binary file not shown.
2 changes: 1 addition & 1 deletion src/org/achartengine/compat/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public static String[] split(String input, String sep){
throw new RuntimeException("Failed to find appropriate stop character");
}
List<String> parts = com.codename1.util.StringUtil.tokenize(input, sep);
return parts.toArray(new String[0]);
return parts.toArray(new String[parts.size()]);
}
}
2 changes: 1 addition & 1 deletion src/org/achartengine/model/XYMultipleSeriesDataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public synchronized int getSeriesCount() {
* @return the XY series array
*/
public synchronized XYSeries[] getSeries() {
return mSeries.toArray(new XYSeries[0]);
return mSeries.toArray(new XYSeries[mSeries.size()]);
}

}
2 changes: 1 addition & 1 deletion src/org/achartengine/renderer/DefaultRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public int getSeriesRendererCount() {
* @return the simple renderers array
*/
public SimpleSeriesRenderer[] getSeriesRenderers() {
return mRenderers.toArray(new SimpleSeriesRenderer[0]);
return mRenderers.toArray(new SimpleSeriesRenderer[mRenderers.size()]);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/org/achartengine/renderer/XYMultipleSeriesRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ public synchronized String getXTextLabel(Double x) {
* @return the X text label locations
*/
public synchronized Double[] getXTextLabelLocations() {
return mXTextLabels.keySet().toArray(new Double[0]);
return mXTextLabels.keySet().toArray(new Double[mXTextLabels.size()]);
}

/**
Expand Down Expand Up @@ -686,7 +686,7 @@ public Double[] getYTextLabelLocations() {
* @return the Y text label locations
*/
public synchronized Double[] getYTextLabelLocations(int scale) {
return mYTextLabels.get(scale).keySet().toArray(new Double[0]);
return mYTextLabels.get(scale).keySet().toArray(new Double[mYTextLabels.size()]);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/org/achartengine/renderer/XYSeriesRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void setFillBelowLine(boolean fill) {
* @return the type of the outside fill of the line.
*/
public FillOutsideLine[] getFillOutsideLine() {
return mFillBelowLine.toArray(new FillOutsideLine[0]);
return mFillBelowLine.toArray(new FillOutsideLine[mFillBelowLine.size()]);
}

/**
Expand Down

0 comments on commit 2e87428

Please sign in to comment.