[Demonstration 1]

[Buggy Method]
static String getLocalizedURL() {
    if (locale == null)
        locale = getLocale(activity);
    if (locale.equals(Locale.ITALY))
        return "www.amazon.it";
    if (locale.equals(Locale.US))
        return "www.amazon.com";
    if (locale.equals(Locale.CANADA))
        return "www.amazon.ca";
    if (locale.equals(Locale.UK))
        return "www.amazon.co.uk";
    if (locale.equals(Locale.FRANCE))
        return "www.amazon.fr";
    if (locale.equals(Locale.GERMANY))
        return "www.amazon.de";
    if (locale.equals(Locale.JAPAN))
        return "www.amazon.jp";
    return "www.amazon.com";
}

[Buggy Hunk]
locale = getLocale(activity);

[Patch]
locale = getLocale(context);

[Demonstration 2]

[Buggy Method]
@Override
public <T> T getService(Class<T> clazz) {
    return initializationContext.getService(clazz);
}

[Buggy Hunk]
return initializationContext.getService(clazz);

[Patch]
return lookup(clazz);

[Demonstration 3]

[Buggy Method]
public DependencyDescription getTransitiveDependencies(final Property prop, final boolean includeInheritedProperties, final boolean includeCycleTypes, List<IEObjectDescription> visitedDependendies, DependencyDescription referrer) {
    TypeRef typeRef = prop.getType();
    if (typeRef instanceof VersionedTypeRef) {
        VersionedTypeRef verTypeRef = (VersionedTypeRef) typeRef;
        VersionedType verType = verTypeRef.getType();
        DependencyDescription depRef = buildDependencyDescription(prop, (BusinessObject) verType, includeInheritedProperties, includeCycleTypes, visitedDependendies, referrer);
        return depRef;
    }
    return null;
}

[Buggy Hunk]
DependencyDescription depRef 	= buildDependencyDescription (prop, (BusinessObject)verType, includeInheritedProperties, includeCycleTypes, visitedDependendies, referrer);

[Patch]
DependencyDescription depRef 	= buildDependencyDescription (prop, verType, includeInheritedProperties, includeCycleTypes, visitedDependendies, referrer);