Program: 21372
Project: 21372
Buggy source:
@SuppressWarnings("String_Node_Str") public URLConnection getConnection(){
  if (method == METHOD_UNKNOWN) {
    JDUtilities.getLogger().severe("String_Node_Str");
    return null;
  }
 else   if (method == METHOD_PUT) {
    JDUtilities.getLogger().severe("String_Node_Str");
    return null;
  }
  if (baseRequest == null)   return null;
  URL baseurl=baseRequest.getConnection().getURL();
  if (action == null || action.matches("String_Node_Str")) {
    if (baseurl == null)     return null;
    action=baseurl.toString();
  }
 else   if (!action.matches("String_Node_Str")) {
    if (baseurl == null)     return null;
    if (action.charAt(0) == '/')     action="String_Node_Str" + baseurl.getHost() + action;
 else     if (action.charAt(0) == '?' || action.charAt(0) == '&') {
      String base=baseurl.toString();
      if (base.matches("String_Node_Str"))       action=base + action;
 else       action=base + "String_Node_Str" + action;
    }
 else {
      String base=baseurl.toString();
      if (base.matches("String_Node_Str"))       action=base.substring(0,base.lastIndexOf("String_Node_Str")) + "String_Node_Str" + action;
 else       action=base + "String_Node_Str" + action;
    }
  }
  StringBuffer buffer=new StringBuffer();
  boolean first=true;
  for (  Map.Entry<String,String> entry : vars.entrySet()) {
    if (first)     first=false;
 else     buffer.append("String_Node_Str");
    buffer.append(entry.getKey());
    buffer.append("String_Node_Str");
    buffer.append(URLEncoder.encode(entry.getValue()));
  }
  String varString=buffer.toString();
  if (method == METHOD_GET) {
    if (varString != null && !varString.matches("String_Node_Str")) {
      if (action.matches("String_Node_Str"))       action+="String_Node_Str";
 else       if (action.matches("String_Node_Str"))       action+="String_Node_Str";
      action+=varString;
    }
    try {
      URLConnection urlConnection=new URL(action).openConnection();
      urlConnection.setRequestProperty("String_Node_Str",Plugin.ACCEPT_LANGUAGE);
      urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConnection.setRequestProperty("String_Node_Str",baseRequest.getCookie());
      urlConnection.setRequestProperty("String_Node_Str",baseurl.toString());
      return urlConnection;
    }
 catch (    MalformedURLException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else   if (method == METHOD_POST) {
    try {
      URLConnection urlConnection=new URL(action).openConnection();
      urlConnection.setRequestProperty("String_Node_Str",Plugin.ACCEPT_LANGUAGE);
      urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConnection.setRequestProperty("String_Node_Str",baseRequest.getCookie());
      urlConnection.setRequestProperty("String_Node_Str",baseurl.toString());
      urlConnection.setDoOutput(true);
      OutputStreamWriter wr=new OutputStreamWriter(urlConnection.getOutputStream());
      wr.write(varString);
      wr.flush();
      wr.close();
      return urlConnection;
    }
 catch (    MalformedURLException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return null;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public URLConnection getConnection(){
  if (method == METHOD_UNKNOWN) {
    JDUtilities.getLogger().severe("String_Node_Str");
    return null;
  }
 else   if (method == METHOD_PUT) {
    JDUtilities.getLogger().severe("String_Node_Str");
    return null;
  }
  if (baseRequest == null)   return null;
  URL baseurl=baseRequest.getConnection().getURL();
  if (action == null || action.matches("String_Node_Str")) {
    if (baseurl == null)     return null;
    action=baseurl.toString();
  }
 else   if (!action.matches("String_Node_Str")) {
    if (baseurl == null)     return null;
    if (action.charAt(0) == '/')     action="String_Node_Str" + baseurl.getHost() + action;
 else     if (action.charAt(0) == '?' || action.charAt(0) == '&') {
      String base=baseurl.toString();
      if (base.matches("String_Node_Str"))       action=base + action;
 else       action=base + "String_Node_Str" + action;
    }
 else {
      String base=baseurl.toString();
      if (base.matches("String_Node_Str"))       action=base.substring(0,base.lastIndexOf("String_Node_Str")) + "String_Node_Str" + action;
 else       action=base + "String_Node_Str" + action;
    }
  }
  StringBuffer buffer=new StringBuffer();
  boolean first=true;
  for (  Map.Entry<String,String> entry : vars.entrySet()) {
    if (first)     first=false;
 else     buffer.append("String_Node_Str");
    buffer.append(entry.getKey());
    buffer.append("String_Node_Str");
    buffer.append(URLEncoder.encode(entry.getValue()));
  }
  String varString=buffer.toString();
  if (method == METHOD_GET) {
    if (varString != null && !varString.matches("String_Node_Str")) {
      if (action.matches("String_Node_Str"))       action+="String_Node_Str";
 else       if (action.matches("String_Node_Str"))       action+="String_Node_Str";
      action+=varString;
    }
    try {
      URLConnection urlConnection=new URL(action).openConnection();
      urlConnection.setRequestProperty("String_Node_Str",Plugin.ACCEPT_LANGUAGE);
      urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConnection.setRequestProperty("String_Node_Str",baseRequest.getCookie());
      for (      Map.Entry<String,String> entry : requestPoperties.entrySet()) {
        urlConnection.setRequestProperty(entry.getKey(),entry.getValue());
      }
      urlConnection.setRequestProperty("String_Node_Str",baseurl.toString());
      return urlConnection;
    }
 catch (    MalformedURLException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else   if (method == METHOD_POST) {
    try {
      URLConnection urlConnection=new URL(action).openConnection();
      urlConnection.setRequestProperty("String_Node_Str",Plugin.ACCEPT_LANGUAGE);
      urlConnection.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConnection.setRequestProperty("String_Node_Str",baseRequest.getCookie());
      for (      Map.Entry<String,String> entry : requestPoperties.entrySet()) {
        urlConnection.setRequestProperty(entry.getKey(),entry.getValue());
      }
      urlConnection.setRequestProperty("String_Node_Str",baseurl.toString());
      urlConnection.setDoOutput(true);
      OutputStreamWriter wr=new OutputStreamWriter(urlConnection.getOutputStream());
      wr.write(varString);
      wr.flush();
      wr.close();
      return urlConnection;
    }
 catch (    MalformedURLException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return null;
}