[Demonstration 1]

[Buggy Method]
public void load() {
    File file = new File("config.properties");
    if (!file.exists())
        createFile(file);
    try (InputStream inputStream = new FileInputStream(file)) {
        properties = new Properties();
        properties.load(inputStream);
    } catch (IOException e) {
        Cloud.getLogger().error(e.getMessage());
    }
}

[Buggy Hunk]
Cloud.getLogger().error(e.getMessage());

[Patch]
Cloud.getLogger().error(e.getMessage(), e);

[Demonstration 2]

[Buggy Method]
public static void notifyUser(Context context, String message) {
    String appName = context.getString(R.string.app_name);
    notifyUser(context, message, appName);
}

[Buggy Hunk]
public static void notifyUser(Context context, String message) {

[Patch]
public synchronized static void notifyUser(Context context, String message) {

[Demonstration 3]

[Buggy Method]
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    if (filteredRecipes.size() == 0) {
        return inflater.inflate(R.layout.recipe_row, null);
    }
    Recipe recipe = filteredRecipes.get(position);
    View row = inflater.inflate(R.layout.recipe_row, null);
    TextView recipeName = (TextView) row.findViewById(R.id.recipe_row_name);
    recipeName.setText(recipe.getRecipeName());
    RatingBar ratingBar = (RatingBar) row.findViewById(R.id.row_rating);
    ratingBar.setRating(recipe.getRating());
    return row;
}

[Buggy Hunk]
RatingBar ratingBar = (RatingBar) row.findViewById( R.id.row_rating);

[Patch]
ratingBar = (RatingBar) row.findViewById( R.id.row_rating);