package org.geojson.object;

public class FeatureCollection {
	
	private Feature[] features;
	
	public FeatureCollection(Feature[] features) {
		this.features = features;
	}
	
	public Feature[] getFeatures() {
		return features;
	}
	
	public void setFeatures(Feature[] features) {
		this.features = features;
	}
}
package org.geojson.object;

import java.util.List;

public class FeatureCollection {
	
	private List<Feature> features;
	
	public FeatureCollection(List<Feature> features) {
		this.features = features;
	}
	
	public Feature[] getFeatures() {
		return features.toArray(new Feature[0]);
	}
}
Use List<Feature> instead array in constructor.
REFACTORED: Use List<Feature> instead array in constructor.