[Demonstration 1]

[Buggy Method]
@SuppressWarnings("unchecked")
@Override
protected List<Locale> getValues() {
    final LocaleContext localeContext = getLocaleContext();
    final List<Locale> values = (List<Locale>) super.getValues();
    if (values == null) {
        return localeContext.getCountries();
    }
    LocaleCountryUtil.sort(values, localeContext.getLocale());
    return values;
}

[Buggy Hunk]
final List<Locale> values = (List<Locale>) super.getValues();

[Patch]
final List<Locale> values = super.getValues();

[Demonstration 2]

[Buggy Method]
public List<String> getValues(String key) {
    return map.valueIterator(key).toList();
}

[Buggy Hunk]
public List<String> getValues(String key)

[Patch]
public synchronized List<String> getValues(String key)

[Demonstration 3]

[Buggy Method]
private HashMap<FuellingEntry.FuelType, Double> calculateTotalTypeVolume(NewGenFuelConsumption prevC, FuellingEntry entry) {
    HashMap<FuellingEntry.FuelType, Double> result;
    result = (prevC == null) ? new HashMap<>() : new HashMap<>(prevC.getTotalTypeVolume());
    FuellingEntry.FuelType type = entry.getFuelType();
    double volume = (result.get(type) == null) ? 0 : result.get(type);
    result.put(type, volume + entry.getFuelQuantitySI());
    return result;
}

[Buggy Hunk]
result = (prevC == null) ? new HashMap<>() : new HashMap<>(prevC.getTotalTypeVolume());

[Patch]
result = (prevC == null) ? new HashMap<>() : new HashMap<>(prevC.getTotalVolumeByType());