Skip to content

Commit d71b5a6

Browse files
committed
添加 Read_UseBigIntegerMode 新特性
1 parent d4be00f commit d71b5a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

snack4/src/main/java/org/noear/snack4/codec/BeanEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private BeanEncoder(Object value, Options opts) {
6868
this.opts = opts == null ? Options.DEF_OPTIONS : opts;
6969
this.visited = new IdentityHashMap<>();
7070

71-
Write_Nulls = opts.hasFeature(Feature.Write_Nulls);
71+
this.Write_Nulls = this.opts.hasFeature(Feature.Write_Nulls);
7272
}
7373

7474
/**

snack4/src/main/java/org/noear/snack4/json/JsonWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public JsonWriter(Options opts, Writer writer) {
7171
this.writer = writer;
7272
this.opts = opts == null ? Options.DEF_OPTIONS : opts;
7373

74-
Write_BrowserCompatible = opts.hasFeature(Feature.Write_BrowserCompatible);
75-
Write_UseRawBackslash = opts.hasFeature(Feature.Write_UseRawBackslash);
74+
this.Write_BrowserCompatible = this.opts.hasFeature(Feature.Write_BrowserCompatible);
75+
this.Write_UseRawBackslash = this.opts.hasFeature(Feature.Write_UseRawBackslash);
7676
}
7777

7878
public void write(ONode node) throws IOException {

0 commit comments

Comments
 (0)