Code example for AssertionFailedError

0
    } 
 
    @Override 
    public void postNotification(long id, Notification notification) {
        if (notification == null) {
            throw new AssertionFailedError("Posting null notification");
        } 
        mActiveNotifications.put(id, notification);
    } 
 
    @Override 
    public void cancelNotification(long id) {
        Notification notification = mActiveNotifications.remove(id);
        if (notification != null) {
            mCanceledNotifications.add(notification);
        } 
    } 
 
    @Override 
    public void cancelAllNotifications() { 
        for (long id : mActiveNotifications.keySet()) {