[Demonstration 1]

[Buggy Method]
public void bindDog(Dog dog) {
    mNameTextView.setText(dog.getName());
    mGenderTextView.setText(dog.getGender());
    mBreedsTextView.setText(dog.getBreeds() + "");
    Picasso.with(mContext).load(String.valueOf(dog.getPhotos())).resize(MAX_WIDTH, MAX_HEIGHT).centerCrop().into(mDogImageView);
}

[Buggy Hunk]
mBreedsTextView.setText(dog.getBreeds() + "");

[Patch]
mBreedsTextView.setText(dog.getBreeds().toString());

[Demonstration 2]

[Buggy Method]
@Async
public void execute(Command command) {
    cmd = command;
    filename = "nmap-scan_" + new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss").format(new Date()) + ".xml";
    tempPath = tempPath + filename;
    List<String> commandsList = new ArrayList<String>();
    commandsList.add("nmap");
    commandsList.addAll(Arrays.asList(command.getText().split(" ")));
    commandsList.addAll(Arrays.asList(new String[] { "-oX", tempPath }));
    try {
        Process p = Runtime.getRuntime().exec(commandsList.toArray(new String[] {}));
        final InputStream stream = p.getInputStream();
        final InputStream errors = p.getErrorStream();
        new Thread(new Runnable() {

            public void run() {
                BufferedReader reader = null;
                BufferedReader errorReader = null;
                try {
                    reader = new BufferedReader(new InputStreamReader(stream));
                    String line = null;
                    while ((line = reader.readLine()) != null) {
                        cmd.getOutput().setText(cmd.getOutput().getText() + line + "<br/>");
                    }
                    errorReader = new BufferedReader(new InputStreamReader(errors));
                    while ((line = errorReader.readLine()) != null) {
                        cmd.getOutput().setText(cmd.getOutput().getText() + "<i>" + line + "</i><br/>");
                    }
                } catch (Exception e) {
                    // TODO
                } finally {
                    readXML();
                    cmd.setFinished(true);
                    if (reader != null) {
                        try {
                            reader.close();
                        } catch (IOException e) {
                            cmd.setFinished(true);
                        }
                    }
                }
            }
        }).start();
    } catch (IOException e) {
        e.printStackTrace();
    }
}

[Buggy Hunk]
filename= "nmap-scan_" + new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss")

[Patch]
String filename= "nmap-scan_" + new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss")