[Demonstration 1]

[Buggy Method]
public Map<String, List<League>> getLeagueEntryBySummoners(Region region, String... summonerIds) throws RiotApiException {
    Objects.requireNonNull(region);
    Objects.requireNonNull(summonerIds);
    ApiMethod method = new GetLeagueEntryBySummoners(getConfig(), region, Convert.joinString(",", summonerIds));
    return endpointManager.callMethodAndReturnDto(method);
}

[Buggy Hunk]
ApiMethod method = new GetLeagueEntryBySummoners(getConfig(), region, Convert.joinString(",", summonerIds));

[Patch]
ApiMethod method = new GetLeagueEntryBySummoners(getConfig(), region, Utility.joinString(",", summonerIds));

[Demonstration 2]

[Buggy Method]
public static byte[] getByteArrayFromInputStream(InputStream in, int bufferSize) {
    ByteArrayOutputStream baos = new ByteArrayOutputStream() {

        @Override
        public byte[] toByteArray() {
            return this.buf;
        }
    };
    try {
        LocalServer.copyIO(in, baos, bufferSize);
    } catch (Exception ex) {
        throw new RuntimeException(ex);
    }
    return baos.toByteArray();
}

[Buggy Hunk]
ByteArrayOutputStream baos = new ByteArrayOutputStream() { @Override public byte[] toByteArray() { return this.buf; } };

[Patch]
ByteArrayOutputStream baos = new ByteArrayOutputStream();

[Demonstration 3]

[Buggy Method]
@Override
public String getUnlocalizedName(ItemStack itemstack) {
    if (itemstack.getItemDamage() > 0 && itemstack.getItemDamage() <= Consts.VALID_ALLOY_COUNT) {
        return "item." + EnumAlloy.values()[itemstack.getItemDamage()].name;
    }
    return super.getUnlocalizedName(itemstack);
}

[Buggy Hunk]
return "item." + EnumAlloy.values()[itemstack.getItemDamage()].name;

[Patch]
return "item." + EnumAlloy.values()[itemstack.getItemDamage() - 1].name;