Program: 33213
Project: 33213
Buggy source:
private static String escape(final Object obj,final boolean singleQuoteEscape){
  String value;
  try {
    if (obj == null) {
      value=Constants.ATTR_NULL;
    }
 else     if (obj instanceof Collection) {
      final StringBuilder buffer=new StringBuilder("String_Node_Str");
      for (@SuppressWarnings("String_Node_Str") final Iterator<Object> itor=((Collection<Object>)obj).iterator(); itor.hasNext(); ) {
        buffer.append(escape(itor.next(),false));
        if (itor.hasNext()) {
          buffer.append(',');
        }
      }
      buffer.append(']');
      value=buffer.toString();
    }
 else     if (obj instanceof Map) {
      final StringBuilder buffer=new StringBuilder("String_Node_Str");
      for (@SuppressWarnings("String_Node_Str") final Iterator<Map.Entry<String,Object>> itor=((Map<String,Object>)obj).entrySet().iterator(); itor.hasNext(); ) {
        final Map.Entry<String,Object> entry=itor.next();
        buffer.append("String_Node_Str").append(entry.getKey()).append("String_Node_Str");
        buffer.append(':').append(escape(entry.getValue(),false));
        if (itor.hasNext()) {
          buffer.append(',');
        }
      }
      buffer.append('}');
      value=buffer.toString();
    }
 else {
      value=(obj instanceof ParameterAlias) ? "String_Node_Str" + ((ParameterAlias)obj).getAlias() : (obj instanceof Boolean) ? BooleanUtils.toStringTrueFalse((Boolean)obj) : (obj instanceof UUID) ? obj.toString() : (obj instanceof byte[]) ? EdmBinary.getInstance().toUriLiteral(Hex.encodeHexString((byte[])obj)) : (obj instanceof Timestamp) ? timestamp((Timestamp)obj) : (obj instanceof Calendar) ? calendar((Calendar)obj) : (obj instanceof Duration) ? duration((Duration)obj) : (obj instanceof BigDecimal) ? EdmDecimal.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Double) ? EdmDouble.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Float) ? EdmSingle.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Long) ? EdmInt64.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Geospatial) ? URLEncoder.encode(EdmPrimitiveTypeFactory.getInstance(((Geospatial)obj).getEdmPrimitiveTypeKind()).valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null),Constants.UTF8) : (obj instanceof String) ? quoteString((String)obj,singleQuoteEscape) : obj.toString();
    }
  }
 catch (  Exception e) {
    LOG.warn("String_Node_Str",obj,e);
    if (obj == null) {
      value="String_Node_Str";
    }
 else {
      value=obj.toString();
    }
  }
  return value;
}

Fixed version (ground truth):
private static String escape(final Object obj,final boolean singleQuoteEscape){
  String value;
  try {
    if (obj == null) {
      value=Constants.ATTR_NULL;
    }
 else     if (obj instanceof Collection) {
      final StringBuilder buffer=new StringBuilder("String_Node_Str");
      for (@SuppressWarnings("String_Node_Str") final Iterator<Object> itor=((Collection<Object>)obj).iterator(); itor.hasNext(); ) {
        buffer.append(escape(itor.next(),false));
        if (itor.hasNext()) {
          buffer.append(',');
        }
      }
      buffer.append(']');
      value=buffer.toString();
    }
 else     if (obj instanceof Map) {
      final StringBuilder buffer=new StringBuilder("String_Node_Str");
      for (@SuppressWarnings("String_Node_Str") final Iterator<Map.Entry<String,Object>> itor=((Map<String,Object>)obj).entrySet().iterator(); itor.hasNext(); ) {
        final Map.Entry<String,Object> entry=itor.next();
        buffer.append("String_Node_Str").append(entry.getKey()).append("String_Node_Str");
        buffer.append(':').append(escape(entry.getValue(),false));
        if (itor.hasNext()) {
          buffer.append(',');
        }
      }
      buffer.append('}');
      value=buffer.toString();
    }
 else {
      value=(obj instanceof ParameterAlias) ? "String_Node_Str" + ((ParameterAlias)obj).getAlias() : (obj instanceof Boolean) ? BooleanUtils.toStringTrueFalse((Boolean)obj) : (obj instanceof UUID) ? obj.toString() : (obj instanceof byte[]) ? EdmBinary.getInstance().toUriLiteral(Hex.encodeHexString((byte[])obj)) : (obj instanceof Timestamp) ? timestamp((Timestamp)obj) : (obj instanceof Calendar) ? calendar((Calendar)obj) : (obj instanceof Duration) ? duration((Duration)obj) : (obj instanceof BigDecimal) ? EdmDecimal.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Double) ? EdmDouble.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Float) ? EdmSingle.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Long) ? EdmInt64.getInstance().valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null) : (obj instanceof Geospatial) ? URLEncoder.encode(EdmPrimitiveTypeFactory.getInstance(((Geospatial)obj).getEdmPrimitiveTypeKind()).valueToString(obj,null,null,Constants.DEFAULT_PRECISION,Constants.DEFAULT_SCALE,null),Constants.UTF8) : (obj instanceof String) ? quoteString((String)obj,singleQuoteEscape) : obj.toString();
    }
  }
 catch (  Exception e) {
    value=obj.toString();
  }
  return value;
}