Skip to content

Commit 80b334e

Browse files
authored
Merge pull request #838 from Earlopain/java-quirks-mode
Remove remaining `quirks_mode` from java code
2 parents c1ac669 + 8118532 commit 80b334e

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286
## 2015-09-11 (2.0.0)
287287
* Now complies to newest JSON RFC 7159.
288288
* Implements compatibility to ruby 2.4 integer unification.
289+
* Removed support for `quirks_mode` option.
289290
* Drops support for old rubies whose life has ended, that is rubies < 2.0.
290291
Also see https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/
291292
* There were still some mentions of dual GPL licensing in the source, but JSON

java/src/json/ext/GeneratorState.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ public class GeneratorState extends RubyObject {
8282
*/
8383
private boolean asciiOnly = DEFAULT_ASCII_ONLY;
8484
static final boolean DEFAULT_ASCII_ONLY = false;
85-
/**
86-
* If set to <code>true</code> all JSON values generated might not be
87-
* RFC-conform JSON documents.
88-
*/
89-
private boolean quirksMode = DEFAULT_QUIRKS_MODE;
90-
static final boolean DEFAULT_QUIRKS_MODE = false;
9185
/**
9286
* If set to <code>true</code> the forward slash will be escaped in
9387
* json output.
@@ -218,7 +212,6 @@ public IRubyObject initialize_copy(ThreadContext context, IRubyObject vOrig) {
218212
this.maxNesting = orig.maxNesting;
219213
this.allowNaN = orig.allowNaN;
220214
this.asciiOnly = orig.asciiOnly;
221-
this.quirksMode = orig.quirksMode;
222215
this.scriptSafe = orig.scriptSafe;
223216
this.strict = orig.strict;
224217
this.bufferInitialLength = orig.bufferInitialLength;

0 commit comments

Comments
 (0)