measurements.add(MeasurementValue.create(measurement, value));
return this;
}
public MeasurementMap build() {
for (int i = 0; i < measurements.size(); i++) {
<BUG>MeasurementDescriptor current = measurements.get(i).getMeasurement();
</BUG>
for (int j = i + 1; j < measurements.size(); j++) {
<BUG>if (current.equals(measurements.get(j).getMeasurement())) {
</BUG>
measurements.remove(j);

measurements.add(MeasurementValue.create(measurement, value));
return this;
}
public MeasurementMap build() {
for (int i = 0; i < measurements.size(); i++) {
String current = measurements.get(i).getMeasurement().getName();
for (int j = i + 1; j < measurements.size(); j++) {
if (current.equals(measurements.get(j).getMeasurement().getName())) {
measurements.remove(j);
