[Demonstration 1]

[Buggy Method]
public Map<String, List<String>> parseQueryString(URI uri) {
    return PATTERN_AND.splitAsStream(uri.getQuery()).map(s -> Arrays.copyOf(s.split("="), 2)).collect(Collectors.groupingBy(s -> s[0], Collectors.mapping(s -> s[1], toList())));
}

[Buggy Hunk]
public Map<String, List<String>> parseQueryString(URI uri) {

[Patch]
public static Map<String, List<String>> parseQueryString(URI uri) {

[Demonstration 2]

[Buggy Method]
@Override
public String[] getAllPropertyNames() {
    List<String> names = new ArrayList<String>();
    for (IProperty prop : properties) {
        names.add(prop.getName());
    }
    return (String[]) names.toArray();
}

[Buggy Hunk]
return (String[]) names.toArray();

[Patch]
return names.toArray(new String[0]);

[Demonstration 3]

[Buggy Method]
@Override
public void actionPerformed(ActionEvent e) {
    try {
        newData[0] = (float) Api.CurrentPrice("xrpusd");
        newData[1] = (float) Bot.max;
        newData[2] = (float) Bot.buyingPrice;
        newData[3] = (float) Bot.sellingPrice;
    } catch (InterruptedException e1) {
        e1.printStackTrace();
    }
    dataset.advanceTime();
    dataset.appendData(newData);
}

[Buggy Hunk]
newData[1] = (float) Bot.max;

[Patch]
newData[1] = (float) Bot.anchor;