[Demonstration 1]

[Buggy Method]
@Override
public void update() {
    super.update();
    float percent;
    percent = this.player.getCurrentHealth() / (float) this.player.getMaxHealth();
    int barWidth = (int) (this.width * 0.52f * percent);
    barWidth = Math.max(barWidth, 2);
    this.hpBar.setWidth(barWidth);
    percent = this.player.getXp() / (float) this.player.getXpForNextLevel();
    barWidth = (int) (this.width * 0.52f * percent);
    barWidth = Math.max(barWidth, 2);
    this.xpBar.setWidth(barWidth);
    this.playerIcon.setBackground(this.player.getSprite());
    this.playerIcon.resize((int) (this.width * 0.25f), (int) (this.width * 0.25f));
    this.playerLevel.setText("Level: " + player.getCurrentLevel());
}

[Buggy Hunk]
this.playerIcon.setBackground(this.player.getSprite());

[Patch]
this.playerIcon.setBackground(new Sprite(this.player.getSprite()));

[Demonstration 2]

[Buggy Method]
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
    data.clear();
    for (DataSnapshot child : dataSnapshot.getChildren()) {
        data.put(child.getKey().toString(), child.getValue().toString());
    }
    Log.v(TAG, "Data: " + data);
    userData.put(userID, data);
    //                            Log.v(TAG, "UserData List: " + userData);
    //                            Log.v(TAG,"Data List: "+data.toString());
    updateReferences();
    if (getActivity() != null) {
        if (names != null) {
            setListAdapter(new ImageAndTextAdapter(getContext(), R.layout.fragment_lobby_item, names, status, kills, //null -> TypedArray icons
            null));
        }
    }
}

[Buggy Hunk]
data.put(child.getKey().toString(), child.getValue().toString());

[Patch]
data.put(child.getKey(), child.getValue().toString());

[Demonstration 3]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ButterKnife.bind(this);
    mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
    mUId = mSharedPreferences.getString(Constants.KEY_UID, null);
    mUserRef = new Firebase(Constants.FIREBASE_URL_USERS).child(mUId);
    mMakePlansButton.setOnClickListener(this);
    mViewEventsButton.setOnClickListener(this);
    Typeface myCustomFont = Typeface.createFromAsset(getAssets(), "fonts/bario.ttf");
    mTextView.setTypeface(myCustomFont);
    setTitle(null);
    setSupportActionBar(topToolBar);
    mSavedEventRef = new Firebase(Constants.FIREBASE_URL_EVENT);
    mFirebaseRef = new Firebase(Constants.FIREBASE_URL);
    mSavedEventRefListener = mSavedEventRef.addValueEventListener(new ValueEventListener() {

        @Override
        public void onDataChange(DataSnapshot dataSnapshot) {
            if (dataSnapshot.getValue() != null) {
                String events = dataSnapshot.getValue().toString();
                Log.d("Events added", events);
            }
        }

        @Override
        public void onCancelled(FirebaseError firebaseError) {
        }
    });
    mUserRefListener = mUserRef.addValueEventListener(new ValueEventListener() {

        @Override
        public void onDataChange(DataSnapshot dataSnapshot) {
            User user = dataSnapshot.getValue(User.class);
            mWelcomeTextView.setText("Welcome, " + user.getName() + ", to");
        }

        @Override
        public void onCancelled(FirebaseError firebaseError) {
            Log.d(TAG, "Read failed");
        }
    });
}

[Buggy Hunk]
mWelcomeTextView.setText("Welcome, " + user.getName() + ", to");

[Patch]
mWelcomeTextView.setText(user.getName());