albertogoffi / toradocu

Toradocu - automated generation of test oracles from Javadoc documentation
Other
42 stars 21 forks source link

Incompatible types in condition (maybe bad interpretation of "has been set") #112

Closed bjkeller closed 6 years ago

bjkeller commented 7 years ago

The method net.sf.freecol.common.model.NativeTradeItem.priceIsSet() has an @return that reads True if a price has been set.

This condition is being translated as target.getPrice()!=null, which does not compile because target.getPrice() returns an int value.

albertogoffi commented 6 years ago

Fixed by #226.