优化HttpScope
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
*/
|
||||
package org.redkale.convert.json;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.function.Consumer;
|
||||
import java.lang.reflect.*;
|
||||
import java.nio.charset.*;
|
||||
import java.util.function.*;
|
||||
import org.redkale.convert.*;
|
||||
import static org.redkale.convert.json.JsonWriter.*;
|
||||
import org.redkale.util.*;
|
||||
@@ -311,7 +311,7 @@ public class JsonBytesWriter extends JsonWriter implements ByteTuple {
|
||||
System.arraycopy(bs2, 0, src, c, len2);
|
||||
c += len2;
|
||||
src[c++] = '"';
|
||||
content[c++] = '}';
|
||||
src[c++] = '}';
|
||||
count = c;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
*/
|
||||
package org.redkale.net.http;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.net.HttpCookie;
|
||||
import java.io.*;
|
||||
import java.net.*;
|
||||
import java.util.*;
|
||||
import java.util.function.*;
|
||||
import org.redkale.convert.*;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.persistence.Transient;
|
||||
import org.redkale.convert.json.*;
|
||||
import org.redkale.persistence.*;
|
||||
|
||||
/**
|
||||
* HTTP输出引擎的对象域 <br>
|
||||
@@ -111,6 +111,16 @@ public class HttpScope {
|
||||
return rs;
|
||||
}
|
||||
|
||||
public boolean recycle() {
|
||||
this.referid = null;
|
||||
this.referObj = null;
|
||||
this.attributes = null;
|
||||
this.attrFunction = null;
|
||||
this.headers = null;
|
||||
this.cookies = null;
|
||||
return true;
|
||||
}
|
||||
|
||||
public HttpScope referObj(Object value) {
|
||||
this.referObj = value;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user