public class DefaultQuantityFactory <Q extends Quantity<Q>> implements QuantityFactory<Q>{
private final Class<Q> quantity;
public DefaultQuantityFactory(Class<Q> quantity) {
this.quantity = quantity;
}
<BUG>public String toString() {
StringBuilder string = new StringBuilder();
string.append("tec.uom.se.DefaultQuantityFactory <");
string.append(quantity.getName()).append('>');
return string.toString();</BUG>
}

public class DefaultQuantityFactory <Q extends Quantity<Q>> implements QuantityFactory<Q>{
private final Class<Q> quantity;
public DefaultQuantityFactory(Class<Q> quantity) {
this.quantity = quantity;
}
public String toString() {
return "tec.uom.se.DefaultQuantityFactory <" + quantity.getName() + '>';
}
