Program: 29682
Project: 29682
Buggy source:
public static String urlToString(String url,List<AuthorizationValue> auths) throws Exception {
  InputStream is=null;
  URLConnection conn=null;
  BufferedReader br=null;
  try {
    if (auths != null) {
      StringBuilder queryString=new StringBuilder();
      for (      AuthorizationValue auth : auths) {
        if ("String_Node_Str".equals(auth.getType())) {
          if (queryString.toString().length() == 0)           queryString.append("String_Node_Str");
 else           queryString.append("String_Node_Str");
          queryString.append(URLEncoder.encode(auth.getKeyName(),"String_Node_Str")).append("String_Node_Str").append(URLEncoder.encode(auth.getValue(),"String_Node_Str"));
        }
      }
      if (queryString.toString().length() != 0)       url=url + queryString.toString();
      conn=new URL(url).openConnection();
      for (      AuthorizationValue auth : auths) {
        if ("String_Node_Str".equals(auth.getType())) {
          conn.setRequestProperty(auth.getKeyName(),auth.getValue());
        }
      }
    }
 else {
      conn=new URL(url).openConnection();
    }
    StringBuilder sb=new StringBuilder();
    String line;
    is=conn.getInputStream();
    br=new BufferedReader(new InputStreamReader(is));
    while ((line=br.readLine()) != null) {
      sb.append(line);
    }
    return sb.toString();
  }
 catch (  javax.net.ssl.SSLProtocolException e) {
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    e.printStackTrace();
    throw e;
  }
catch (  Exception e) {
    e.printStackTrace();
    throw e;
  }
 finally {
    if (is != null)     is.close();
    if (br != null)     br.close();
  }
}

Fixed version (ground truth):
public static String urlToString(String url,List<AuthorizationValue> auths) throws Exception {
  InputStream is=null;
  URLConnection conn=null;
  BufferedReader br=null;
  try {
    if (auths != null) {
      StringBuilder queryString=new StringBuilder();
      for (      AuthorizationValue auth : auths) {
        if ("String_Node_Str".equals(auth.getType())) {
          if (queryString.toString().length() == 0)           queryString.append("String_Node_Str");
 else           queryString.append("String_Node_Str");
          queryString.append(URLEncoder.encode(auth.getKeyName(),"String_Node_Str")).append("String_Node_Str").append(URLEncoder.encode(auth.getValue(),"String_Node_Str"));
        }
      }
      if (queryString.toString().length() != 0)       url=url + queryString.toString();
      conn=new URL(url).openConnection();
      for (      AuthorizationValue auth : auths) {
        if ("String_Node_Str".equals(auth.getType())) {
          conn.setRequestProperty(auth.getKeyName(),auth.getValue());
        }
      }
    }
 else {
      conn=new URL(url).openConnection();
    }
    StringBuilder sb=new StringBuilder();
    String line;
    is=conn.getInputStream();
    br=new BufferedReader(new InputStreamReader(is));
    while ((line=br.readLine()) != null) {
      sb.append(line).append("String_Node_Str");
    }
    return sb.toString();
  }
 catch (  javax.net.ssl.SSLProtocolException e) {
    System.out.println("String_Node_Str");
    System.out.println("String_Node_Str");
    e.printStackTrace();
    throw e;
  }
catch (  Exception e) {
    e.printStackTrace();
    throw e;
  }
 finally {
    if (is != null)     is.close();
    if (br != null)     br.close();
  }
}