[Demonstration 1]

[Buggy Method]
@Before
public void setUp() throws Exception {
    request = new UserRegistrationRequest();
    request.setFirstName("Kiss");
    request.setLastName("Pista");
    request.setUserName("ASD123");
    request.setPassword("ASDeuhwefjd23!");
    SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd");
    Date date = fmt.parse("2001-05-06");
    request.setBirthDate(date);
    request.setPersonalDescription("Description");
    request.setEmail("email@email.hu");
    request.setPhoneNumber("+3630/4545678");
    Address address = new Address();
    request.setAddress(address);
}

[Buggy Hunk]
Address address = new Address();

[Patch]
Address address = new Address("street", "city", "1355", "country");

[Demonstration 2]

[Buggy Method]
private int getSummarySize(String[] zips) {
    int size = 0;
    for (String z : zips) {
        try {
            ZipFile zipSize = new ZipFile(z);
            size += zipSize.size();
        } catch (IOException e) {
            Log.e(TAG, e.getLocalizedMessage());
        }
    }
    return size;
}

[Buggy Hunk]
Log.e(TAG, e.getLocalizedMessage());

[Patch]
Log.e("MinetestAssetCopy", e.getLocalizedMessage());

[Demonstration 3]

[Buggy Method]
private void addNewSession(@NotNull XDebugSession session) {
    LOG.assertTrue(SwingUtilities.isEventDispatchThread());
    ToolWindow toolWindow = getToolWindow(session.getProject());
    if (!myMemoryViews.containsKey(session)) {
        try {
            ClassesFilteredView newView = new ClassesFilteredView(session);
            newView.setActive(toolWindow != null && toolWindow.isVisible());
            myMemoryViews.put(session, newView);
        } catch (Throwable e) {
            LOG.warn("Cannot create new instance of the memory view", e);
        }
    }
}

[Buggy Hunk]
LOG.warn("Cannot create new instance of the memory view", e);

[Patch]
LOG.warn("Cannot create new instance of the memory view. " + e.getMessage());