[Demonstration 1]

[Buggy Method]
protected boolean onTouchEventEnd(@NonNull MotionEvent event) {
    // a two-finger pinch gesture ended
    if (performingPinchOperations) {
        if (totalPinchScaling < minPinchScalingForTap && totalPinchTranslation < minPinchTranslationForTap) {
            DoodleView doodleView = getDoodleView();
            if (doodleView != null) {
                doodleView.dispatchTwoFingerTap();
            }
        }
        if (event.getPointerCount() == 1) {
            // mark that we're done with multitouch pinch ops
            pinchLastCenterScreen = null;
            performingPinchOperations = false;
        }
    }
    return doodle.onTouchEventEnd(event);
}

[Buggy Hunk]
if (totalPinchScaling < minPinchScalingForTap && totalPinchTranslation < minPinchTranslationForTap) {

[Patch]
if (event.getPointerCount() == 2 && totalPinchScaling < minPinchScalingForTap && totalPinchTranslation < minPinchTranslationForTap) {

[Demonstration 2]

[Buggy Method]
public Map<Enchantment, Integer> getEnchants(String key) {
    SpigotJSONConfig enchantsJson = getSpigotJSONConfig(key);
    Map<Enchantment, Integer> enchants = Maps.newHashMap();
    for (Enchantment enchant : Enchantment.values()) if (enchantsJson.containsKey(enchant.toString()))
        enchants.put(enchant, enchantsJson.getInt(enchant.toString()));
    return enchants;
}

[Buggy Hunk]
enchants.put(enchant, enchantsJson.getInt(enchant.toString()));

[Patch]
enchants.put(enchant, enchantsJson.getInteger(enchant.toString()));