[Demonstration 1]

[Buggy Method]
@Override
public void onTaskCompleted(String response) {
    Log.d(LOGTAG, response);
    try {
        JSONObject arr = new JSONObject(response);
        if (arr.getBoolean("login")) {
            Log.d(LOGTAG, Boolean.toString(arr.getBoolean("login")));
            Intent intent = new Intent(this, PortalActivity.class);
            intent.putExtra("timetable", arr.getJSONObject("timetable").toString());
            intent.putExtra("representation", arr.getJSONObject("representation").toString());
            startActivity(intent);
        } else {
            Log.d(LOGTAG, Boolean.toString(arr.getBoolean("login")));
            Snackbar.make(findViewById(R.id.login_activity), arr.getString("error"), Snackbar.LENGTH_SHORT).show();
        }
    } catch (JSONException e) {
        Log.e(LOGTAG, e.getMessage());
    }
}

[Buggy Hunk]
Log.e(LOGTAG, e.getMessage());

[Patch]
Log.e(LOGTAG, e.toString());

[Demonstration 2]

[Buggy Method]
@Override
public String toString() {
    return String.format("%1$s versus %2$s", gamer1 == null ? "Gamer 1" : gamer1.toString(), gamer2 == null ? "Gamer 2" : gamer2.toString());
}

[Buggy Hunk]
return String.format( "%1$s versus %2$s", gamer1 == null ? "Gamer 1" : gamer1.toString(), gamer2 == null ? "Gamer 2" : gamer2.toString() );

[Patch]
return name;