[Demonstration 1]

[Buggy Method]
private ZonedDateTime getLastUpdateTime() {
    return jobRepository.findFirstBySuccessOrderByFinishTimeDesc(true).map(UpdateJob::getFinishTime).orElseGet(// no successful updates before, do it for all.
    () -> ZonedDateTime.ofInstant(Instant.MIN, ZoneId.systemDefault()));
}

[Buggy Hunk]
.orElseGet(() -> ZonedDateTime.ofInstant(Instant.MIN, ZoneId.systemDefault())); // no successful updates before, do it for all.

[Patch]
.orElseGet(() -> ZonedDateTime.of(LocalDateTime.MIN, ZoneId.systemDefault())); // no successful updates before, do it for all.

[Demonstration 2]

[Buggy Method]
@Override
public void run() {
    Updater updater = new Updater(plugin.getVersion());
    UpdateResult result = updater.checkForUpdate();
    log.info("Checking for Updates...");
    if (result == UpdateResult.NEEDED) {
        log.info("A new version is available: v" + updater.getLatestVersion());
        log.info("Get it from: " + updater.getDownloadUrl());
        plog.info("New version available: v" + updater.getLatestVersion(), true);
        updatePlayerMsg = true;
        updateLink = updater.getDownloadUrl();
        updateVersion = updater.getLatestVersion();
    } else if (result == UpdateResult.UNNEEDED) {
        log.info("No new version available");
    } else {
        log.info("Could not check for Updates");
    }
}

[Buggy Hunk]
plog.info("New version available: v" + updater.getLatestVersion(), true);

[Patch]
info("New version available: v" + updater.getLatestVersion(), true);

[Demonstration 3]

[Buggy Method]
public static ParticleSpawner getParticleSpawner() {
    if (MCVersion.isOlderThan(MCVersion.MC_1_8) && MCVersion.isNewerThan(MCVersion.UNKNOWN)) {
        return new ParticleSpawnerBukkit_1_7();
    } else if (MCVersion.isNewerOrEqualThan(MCVersion.MC_1_8)) {
        return new ParticleSpawnerBukkit_1_8_AndNewer();
    } else {
        return null;
    }
}

[Buggy Hunk]
if (MCVersion.isOlderThan(MCVersion.MC_1_8) && MCVersion.isNewerThan(MCVersion.UNKNOWN))

[Patch]
if (MCVersion.isOlderThan(MCVersion.MC_1_8))