MCPcopy
hub / github.com/google/gson / setLenient

Method setLenient

gson/src/main/java/com/google/gson/GsonBuilder.java:577–584  ·  view source on GitHub ↗

Sets the strictness of this builder to {@link Strictness#LENIENT}. @deprecated This method is equivalent to calling {@link #setStrictness(Strictness)} with {@link Strictness#LENIENT}: {@code setStrictness(Strictness.LENIENT)} @return a reference to this {@code GsonBuilder} object to fulfill the

()

Source from the content-addressed store, hash-verified

575 * @see #setStrictness(Strictness)
576 */
577 @Deprecated
578 @InlineMe(
579 replacement = "this.setStrictness(Strictness.LENIENT)",
580 imports = "com.google.gson.Strictness")
581 @CanIgnoreReturnValue
582 public GsonBuilder setLenient() {
583 return setStrictness(Strictness.LENIENT);
584 }
585
586 /**
587 * Sets the strictness of this builder to the provided parameter.

Callers 5

testSetLenientMethod · 0.95
setUpMethod · 0.45
parseMethod · 0.45

Calls 1

setStrictnessMethod · 0.95

Tested by 4

testSetLenientMethod · 0.76
setUpMethod · 0.36