[Demonstration 1]

[Buggy Method]
private void prepareViews(@NonNull View view) {
    mImageView = (ImageView) view.findViewById(R.id.fragment_common_viewer_image_view);
    Picasso.with(getContext()).load("file://" + mMedia.getPath()).fit().centerInside().into(mImageView);
}

[Buggy Hunk]
mImageView = (ImageView) view.findViewById(R.id.fragment_common_viewer_image_view);

[Patch]
mImageView = (ImageView) view.findViewById(R.id.fragment_common_viewer_photo_view);

[Demonstration 2]

[Buggy Method]
private Reader Requset() {
    HttpURLConnection urlConnection = null;
    Reader reader = null;
    try {
        URL url = new URL(Constants.URL);
        urlConnection = (HttpURLConnection) url.openConnection();
        urlConnection.setRequestMethod("GET");
        urlConnection.setReadTimeout(10000);
        urlConnection.setConnectTimeout(15000);
        urlConnection.setDoInput(true);
        urlConnection.connect();
        InputStream inputStream = urlConnection.getInputStream();
        StringBuffer buffer = new StringBuffer();
        reader = new BufferedReader(new InputStreamReader(inputStream));
        Parser(reader);
    } catch (IOException e) {
        error = "Failure loading data from network " + e.getMessage();
    }
    return reader;
}

[Buggy Hunk]
error="Failure loading data from network "+e.getMessage();

[Patch]
e.printStackTrace();

[Demonstration 3]

[Buggy Method]
public static void downloadFileSimple(String url, File file) {
    try {
        HttpURLConnection con = (HttpURLConnection) new URL(checkUrl(url)).openConnection();
        con.setUseCaches(false);
        if (con.getResponseCode() != HttpURLConnection.HTTP_OK) {
            throw new RuntimeException("download error url : " + url);
        }
        InputStream is = con.getInputStream();
        BufferedInputStream bis = new BufferedInputStream(is);
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        FileOutputStream fos = new FileOutputStream(file);
        byte[] b = new byte[1024];
        int length = 0;
        while ((length = bis.read(b)) != -1) {
            fos.write(b, 0, length);
        }
        fos.close();
        bis.close();
    } catch (Exception e) {
        e.printStackTrace();
        throw new RuntimeException(e);
    }
}

[Buggy Hunk]
throw new RuntimeException("download error url : " + url);

[Patch]
throw new RuntimeException("download error response code : " + con.getResponseCode() + " url : " + url);