[Demonstration 1]

[Buggy Method]
@RequestMapping(value = "/get/users/birthday/{date}/count", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public int getCountUsersBirsday(@PathVariable final String date) {
    final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    try {
        final Date datePasre = sdf.parse(date);
        return dbBirthdayAllDAO.getCountUserBirthday(datePasre);
    } catch (ParseException e) {
        LOG.error("Ошибка! Не коректные данные: ({})", date);
        return 0;
    }
}

[Buggy Hunk]
public int getCountUsersBirsday(final @PathVariable String date) {

[Patch]
public Integer getCountUsersBirsday(final @PathVariable String date) {

[Demonstration 2]

[Buggy Method]
private void chooseTimeOnCourseDialog() {
    AlertDialog.Builder builder = new AlertDialog.Builder(this);
    builder.setTitle("Hur många timmar vill du lägga på kursen per vecka?");
    // Set an EditText view to get user input
    final EditText input = new EditText(this);
    input.setText("0");
    input.setInputType(InputType.TYPE_CLASS_NUMBER);
    builder.setView(input);
    builder.setPositiveButton("Ok", new DialogInterface.OnClickListener() {

        public void onClick(DialogInterface dialog, int whichButton) {
            String value = input.getText().toString();
            Log.d("course", "add " + value + " minutes to " + courseCode);
            //add value
            long add = coursesDBAdapter.insertTimeOnCourse(courseCode, Integer.parseInt(value));
            Toast toast;
            if (add > 0) {
                int mins = coursesDBAdapter.getTimeOnCourse(courseCode);
                timeOnCourseLabel.setText("Timmar per vecka: " + mins);
                toast = Toast.makeText(getBaseContext(), "Ditt mål är att lägga " + mins + " minuter på " + courseName + " i veckan.", Toast.LENGTH_LONG);
            } else {
                toast = Toast.makeText(getBaseContext(), "Det gick inte att lägga till.", Toast.LENGTH_SHORT);
            }
            toast.show();
        }
    });
    builder.setNegativeButton("Avbryt", new DialogInterface.OnClickListener() {

        public void onClick(DialogInterface dialog, int whichButton) {
            // Canceled.
        }
    });
    AlertDialog alertDialog = builder.create();
    alertDialog.show();
    Button okButton = alertDialog.getButton(DialogInterface.BUTTON_POSITIVE);
    okButton.setTextColor(Color.parseColor(Colors.primaryDarkColor));
    Button cancelButton = alertDialog.getButton(DialogInterface.BUTTON_NEGATIVE);
    cancelButton.setTextColor(Color.parseColor(Colors.primaryDarkColor));
}

[Buggy Hunk]
long add = coursesDBAdapter.insertTimeOnCourse(courseCode, Integer.parseInt(value));

[Patch]
long add = coursesDBAdapter.insertTimeOnCourse(courseCode, Integer.parseInt(value)*60);

[Demonstration 3]

[Buggy Method]
private boolean CompareDays(String dateStartWork) {
    Date date1 = null;
    Calendar calendar = Calendar.getInstance();
    calendar.add(Calendar.DATE, -1);
    Date date = calendar.getTime();
    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
    try {
        date1 = sdf.parse(dateStartWork);
    } catch (ParseException e) {
        e.printStackTrace();
    }
    if (date1.after(date)) {
        return false;
    }
    return true;
}

[Buggy Hunk]
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");

[Patch]
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy", getResources().getConfiguration().locale);