17
17
package com .google .gson ;
18
18
19
19
import com .google .gson .internal .$Gson$Preconditions ;
20
+ import com .google .gson .internal .LazilyParsedNumber ;
20
21
import java .math .BigDecimal ;
21
22
import java .math .BigInteger ;
22
23
23
- import com .google .gson .internal .LazilyParsedNumber ;
24
-
25
24
/**
26
25
* A class representing a Json primitive value. A primitive value
27
26
* is either a String, a Java primitive, or a Java primitive
@@ -39,6 +38,7 @@ public final class JsonPrimitive extends JsonElement {
39
38
*
40
39
* @param bool the value to create the primitive with.
41
40
*/
41
+ @ SuppressWarnings ("deprecation" ) // superclass constructor
42
42
public JsonPrimitive (Boolean bool ) {
43
43
value = $Gson$Preconditions .checkNotNull (bool );
44
44
}
@@ -48,6 +48,7 @@ public JsonPrimitive(Boolean bool) {
48
48
*
49
49
* @param number the value to create the primitive with.
50
50
*/
51
+ @ SuppressWarnings ("deprecation" ) // superclass constructor
51
52
public JsonPrimitive (Number number ) {
52
53
value = $Gson$Preconditions .checkNotNull (number );
53
54
}
@@ -57,6 +58,7 @@ public JsonPrimitive(Number number) {
57
58
*
58
59
* @param string the value to create the primitive with.
59
60
*/
61
+ @ SuppressWarnings ("deprecation" ) // superclass constructor
60
62
public JsonPrimitive (String string ) {
61
63
value = $Gson$Preconditions .checkNotNull (string );
62
64
}
@@ -67,6 +69,7 @@ public JsonPrimitive(String string) {
67
69
*
68
70
* @param c the value to create the primitive with.
69
71
*/
72
+ @ SuppressWarnings ("deprecation" ) // superclass constructor
70
73
public JsonPrimitive (Character c ) {
71
74
// convert characters to strings since in JSON, characters are represented as a single
72
75
// character string
0 commit comments