[Demonstration 1]

[Buggy Method]
public static boolean isFinished() {
    return timeline.getCurrentTime().toMillis() == timeline.getTotalDuration().toMillis();
}

[Buggy Hunk]
return timeline.getCurrentTime().toMillis() == timeline.getTotalDuration().toMillis();

[Patch]
return timeline.getStatus() == javafx.animation.Animation.Status.STOPPED;

[Demonstration 2]

[Buggy Method]
public static void Info(String desc, String str) {
    System.out.println(desc + ":[" + str + "]");
}

[Buggy Hunk]
public static void Info(String desc,String str) {

[Patch]
public final static void Info(String desc,String str) {

[Demonstration 3]

[Buggy Method]
private void getRecentPriceAndPE() {
    try (BufferedReader reader = new BufferedReader(new FileReader(dataFile))) {
        String line;
        while ((line = reader.readLine()) != null) {
            if (line.contains("NYSE")) {
                String str = line.replaceAll("[^.?0-9]+", " ");
                while (str.indexOf(' ') == 0 || !Character.isDigit(str.charAt(0))) {
                    str = str.substring(1, str.length());
                }
                organizedData += "Recent Price: " + str.substring(0, str.indexOf(' ')) + "\n";
                organizedData += "P/E ratio: " + str.substring(str.indexOf(' ') + 1) + "\n";
                break;
            }
        }
    } catch (Exception e) {
        System.out.println(e.getMessage());
    }
}

[Buggy Hunk]
if (line.contains("NYSE")) {

[Patch]
if (line.contains("NYSE") || line.contains("NDQ")) {