[Demonstration 1]

[Buggy Method]
@Override
public void onEnable() {
    plugin = this;
    setupListeners();
    setupCommands();
    setupClassReference();
    setupScoreboard();
    Bukkit.getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {

        @Override
        public void run() {
            for (Player player : Bukkit.getOnlinePlayers()) {
                BossBarAPI.setMessage(player, ChatColor.LIGHT_PURPLE + "HP " + (int) player.getHealth() + "/" + (int) player.getMaxHealth());
            }
        }
    }, 1L, 1L);
}

[Buggy Hunk]
ChatColor.LIGHT_PURPLE + "HP " + (int) player.getHealth() + "/" + (int) player.getMaxHealth());

[Patch]
ChatColor.LIGHT_PURPLE + "" + ChatColor.BOLD + "HP " + (int) player.getHealth() + "/" + (int) player.getMaxHealth());

[Demonstration 2]

[Buggy Method]
@Override
synchronized public void update(Question question) throws PersistenceException {
    if (question == null) {
        throw new PersistenceException("Question cannot be null");
    }
    Long questionId = question.getId();
    if (questionId == null) {
        throw new PersistenceException("Entity Id cannot be null");
    }
    if (questionDB.containsKey(questionId)) {
        throw new PersistenceException("Question with id " + question.getId() + " is not persisted");
    }
    questionDB.replace(questionId, question);
}

[Buggy Hunk]
if (questionDB.containsKey(questionId)) {

[Patch]
if (!questionDB.containsKey(questionId)) {

[Demonstration 3]

[Buggy Method]
@Override
public void run() {
    while (!stop) {
        int i = 0;
        //The Update Method --------------------------------------------------------------------------------
        for (i = 0; i < this.modules.size(); i++) {
            if (this.computing == i) {
                i++;
            }
            this.modules.get(i).update();
        }
        try {
            Thread.sleep(this.m.General_Options.getMinutes() * 3600 + this.m.General_Options.getSeconds() * 60);
        } catch (InterruptedException e) {
        }
    }
    Platform.exit();
}

[Buggy Hunk]
public void run() {

[Patch]
public synchronized void run() {