Program: 21368
Project: 21368
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 stbuffer=new StringBuffer();
  boolean first=true;
  for (  Map.Entry<String,String> entry : vars.entrySet()) {
    if (first)     first=false;
 else     stbuffer.append("String_Node_Str");
    stbuffer.append(entry.getKey());
    stbuffer.append("String_Node_Str");
    stbuffer.append(JDUtilities.urlEncode(entry.getValue()));
  }
  String varString=stbuffer.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();
    }
  }
 else   if (method == METHOD_FILEPOST) {
    try {
      String boundary=MultiPartFormOutputStream.createBoundary();
      URLConnection urlConn=MultiPartFormOutputStream.createConnection(new URL(action));
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConn.setRequestProperty("String_Node_Str",Plugin.ACCEPT_LANGUAGE);
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConn.setRequestProperty("String_Node_Str",baseRequest.getCookie());
      for (      Map.Entry<String,String> entry : requestPoperties.entrySet()) {
        urlConn.setRequestProperty(entry.getKey(),entry.getValue());
      }
      urlConn.setRequestProperty("String_Node_Str",baseurl.toString());
      urlConn.setRequestProperty("String_Node_Str",MultiPartFormOutputStream.getContentType(boundary));
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      MultiPartFormOutputStream out=new MultiPartFormOutputStream(urlConn.getOutputStream(),boundary);
      for (      Map.Entry<String,String> entry : vars.entrySet()) {
        out.writeField(entry.getKey(),URLEncoder.encode(entry.getValue()));
      }
      out.writeFile(filetoPostName,null,fileToPost);
      out.close();
      return urlConn;
    }
 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) == '&') {
      String base=baseurl.toString();
      if (base.matches("String_Node_Str"))       action=base + action;
 else       action=base + "String_Node_Str" + action;
    }
 else     if (action.charAt(0) == '?') {
      String base=baseurl.toString();
      if (base.matches("String_Node_Str")) {
        action=base.replaceFirst("String_Node_Str","String_Node_Str") + 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 stbuffer=new StringBuffer();
  boolean first=true;
  for (  Map.Entry<String,String> entry : vars.entrySet()) {
    if (first)     first=false;
 else     stbuffer.append("String_Node_Str");
    stbuffer.append(entry.getKey());
    stbuffer.append("String_Node_Str");
    stbuffer.append(JDUtilities.urlEncode(entry.getValue()));
  }
  String varString=stbuffer.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();
    }
  }
 else   if (method == METHOD_FILEPOST) {
    try {
      String boundary=MultiPartFormOutputStream.createBoundary();
      URLConnection urlConn=MultiPartFormOutputStream.createConnection(new URL(action));
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConn.setRequestProperty("String_Node_Str",Plugin.ACCEPT_LANGUAGE);
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConn.setRequestProperty("String_Node_Str",baseRequest.getCookie());
      for (      Map.Entry<String,String> entry : requestPoperties.entrySet()) {
        urlConn.setRequestProperty(entry.getKey(),entry.getValue());
      }
      urlConn.setRequestProperty("String_Node_Str",baseurl.toString());
      urlConn.setRequestProperty("String_Node_Str",MultiPartFormOutputStream.getContentType(boundary));
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      urlConn.setRequestProperty("String_Node_Str","String_Node_Str");
      MultiPartFormOutputStream out=new MultiPartFormOutputStream(urlConn.getOutputStream(),boundary);
      for (      Map.Entry<String,String> entry : vars.entrySet()) {
        out.writeField(entry.getKey(),URLEncoder.encode(entry.getValue()));
      }
      out.writeFile(filetoPostName,null,fileToPost);
      out.close();
      return urlConn;
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return null;
}