[Demonstration 1]

[Buggy Method]
public void createFetchNotification() {
    Notification.Builder notificationBuilder = new Notification.Builder(context);
    notificationBuilder.setColor(ContextCompat.getColor(context, R.color.primary)).setSmallIcon(R.drawable.icon_notification_fetch).setVisibility(Notification.VISIBILITY_PUBLIC).setContentIntent(createContentIntent()).setContentTitle("Fetch content start").setContentText("Job schedule start fetching content").setWhen(System.currentTimeMillis()).setShowWhen(true);
    notificationManager.notify(NOTIFICATION_FETCH_ID, notificationBuilder.build());
}

[Buggy Hunk]
Notification.Builder notificationBuilder = new Notification.Builder(context);

[Patch]
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(context, MEDIA_CHANNEL);

[Demonstration 2]

[Buggy Method]
private static void setUpMap() {
    // For showing a move to my loction button
    mMap.setMyLocationEnabled(true);
    // For zooming automatically to the Dropped PIN Location
    mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 16.0f));
}

[Buggy Hunk]
mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,

[Patch]
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,

[Demonstration 3]

[Buggy Method]
public void sendUpdateNotify() {
    Log.i("Start", "notification");
    /* Invoking the default notification service */
    NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getApplicationContext());
    mBuilder.setContentTitle("Get your fresh RSS!");
    mBuilder.setContentText("Service complete update feed.");
    mBuilder.setTicker("New Message Alert!");
    mBuilder.setSmallIcon(R.drawable.ic_launcher);
    mBuilder.setAutoCancel(true);
    /* Increase notification number every time a new notification arrives */
    mBuilder.setNumber(++numMessages);
    /* Creates an explicit intent for an Activity in your app */
    Intent resultIntent = new Intent(this, MainActivity.class);
    TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
    stackBuilder.addParentStack(MainActivity.class);
    /* Adds the Intent that starts the Activity to the top of the stack */
    stackBuilder.addNextIntent(resultIntent);
    PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
    mBuilder.setContentIntent(resultPendingIntent);
    mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    /* notificationID allows you to update the notification later on. */
    mNotificationManager.notify(notificationID, mBuilder.build());
}

[Buggy Hunk]
mBuilder.setSmallIcon(R.drawable.ic_launcher);

[Patch]
mBuilder.setSmallIcon(R.drawable.ic_noti_rss);