int numOfPoints = category.getPointCount();
if (numOfPoints != values.getPointCount()) {
throw new IllegalStateException("Category and values must have the same point count, but had " +
- numOfPoints + " categories and " + values.getPointCount() + " values.");
+ numOfPoints + " categories and " + values.getPointCount() + " values.");
}
}
this.categoryData = category;
@Override
public String getPointAt(int index) {
- if (category.getPtArray().length <= index) {
- throw new IllegalArgumentException("Cannot access 0-based index " + index +
- " in point-array with " + category.getPtArray().length + " items");
- }
+ if (category.getPtArray().length <= index) {
+ throw new IllegalArgumentException("Cannot access 0-based index " + index +
+ " in point-array with " + category.getPtArray().length + " items");
+ }
return category.getPtArray(index).getV();
}