[Demonstration 1]

[Buggy Method]
public int getImageHeight() {
    if (image.getWidth(getImageObserver()) > maxWidth) {
        return image.getScaledInstance(maxWidth, -1, Image.SCALE_DEFAULT).getHeight(new ImageObserver() {

            public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {
                // TODO Auto-generated method stub
                return false;
            }
        });
    } else {
        return image.getHeight(getImageObserver());
    }
}

[Buggy Hunk]
return image.getScaledInstance(maxWidth, -1, Image.SCALE_DEFAULT).getHeight(new ImageObserver() {

[Patch]
return image.getScaledInstance(maxWidth, -1, Image.SCALE_SMOOTH).getHeight(new ImageObserver() {

[Demonstration 2]

[Buggy Method]
@Override
public void drawQuestion(VBox questionArea, QLGUI qlGui) {
    TextField textField = new TextField();
    textField.getStyleClass().add("question");
    textField.maxWidth(630);
    if (value != null) {
        textField.setText(value);
    }
    if (qlGui.getFocusUuid() == uuid)
        qlGui.setFocusedNode(textField);
    textField.positionCaret(textField.getLength());
    // Disable any input other than numbers
    textField.textProperty().addListener((observable, oldValue, newValue) -> {
        if (newValue.length() == 0) {
            value = null;
        } else {
            value = newValue;
        }
        qlGui.renderWithFocus(uuid);
    });
    questionArea.getChildren().add(textField);
}

[Buggy Hunk]
textField.maxWidth(630);

[Patch]
textField.setMaxWidth(630);

[Demonstration 3]

[Buggy Method]
static public String getVisibleStatuteTypesDescription(final Registration registration, final ExecutionSemester executionSemester) {
    return findVisibleStatuteTypes(registration, executionSemester).stream().map(s -> s.getName().getContent()).collect(Collectors.joining(", "));
}

[Buggy Hunk]
return findVisibleStatuteTypes(registration, executionSemester).stream().map(s -> s.getName().getContent())

[Patch]
return findVisibleStatuteTypes(registration, executionSemester).stream().map(s -> s.getName().getContent()).distinct()