[Demonstration 1]

[Buggy Method]
@Override
public void setHtmlInputFieldType(Type type) {
    fieldType = type;
}

[Buggy Hunk]
public void setHtmlInputFieldType(Type type) {

[Patch]
public void setHtmlInputFieldType(final Type type) {

[Demonstration 2]

[Buggy Method]
private boolean setPerspective(Object param) {
    T host = getHostView();
    boolean ret = false;
    if (host != null) {
        float value = WXUtils.getFloatByViewport(param, getInstance().getInstanceViewPortWidth());
        float scale = host.getResources().getDisplayMetrics().density;
        if (!Float.isNaN(value) && value > 0) {
            host.setCameraDistance(value * scale);
            ret = true;
        } else {
            host.setCameraDistance(Float.MAX_VALUE);
        }
    }
    return ret;
}

[Buggy Hunk]
float value = WXUtils.getFloatByViewport(param, getInstance().getInstanceViewPortWidth());

[Patch]
float value = WXViewUtils.getRealPxByWidth(WXUtils.getFloat(param), getInstance().getInstanceViewPortWidth());

[Demonstration 3]

[Buggy Method]
public static void setAttribute(RepositoryDAO dao, String name, String individualName, String value, String type) throws IllegalArgumentException, ClassNotFoundException, RuntimeException {
    List<PropertyValueItem> individualAttributes = dao.getIndividualAttributes(individualName);
    List<PropertyValueItem> attrFound = individualAttributes.stream().filter(item -> item.getNormalizedName().equalsIgnoreCase(name)).collect(Collectors.toList());
    if (null != attrFound && !attrFound.isEmpty()) {
        throw new RuntimeException("attribute " + name + " already set for this Individual");
    }
    dao.setAttribute(name, individualName, value, Class.forName(type));
}

[Buggy Hunk]
throw new RuntimeException("attribute "+ name+ " already set for this Individual");

[Patch]
throw new RuntimeException("This individual already has the property "+ name);