@@ -110,12 +110,12 @@ int[] values = { 1 };
110
110
gson. toJson(values); // ==> [1]
111
111
112
112
// Deserialization
113
- int one = gson. fromJson(" 1" , int . class);
114
- Integer one = gson. fromJson(" 1" , Integer . class);
115
- Long one = gson. fromJson(" 1" , Long . class);
116
- Boolean false = gson. fromJson(" false" , Boolean . class);
113
+ int i = gson. fromJson(" 1" , int . class);
114
+ Integer intObj = gson. fromJson(" 1" , Integer . class);
115
+ Long longObj = gson. fromJson(" 1" , Long . class);
116
+ Boolean boolObj = gson. fromJson(" false" , Boolean . class);
117
117
String str = gson. fromJson(" \" abc\" " , String . class);
118
- String [] anotherStr = gson. fromJson(" [\" abc\" ]" , String []. class);
118
+ String [] strArray = gson. fromJson(" [\" abc\" ]" , String []. class);
119
119
```
120
120
121
121
### Object Examples
@@ -482,7 +482,7 @@ class MyList<T> extends ArrayList<T> {
482
482
}
483
483
484
484
class MyListInstanceCreator implements InstanceCreator<MyList<?> > {
485
- @SuppressWarnings (" unchecked" )
485
+ @SuppressWarnings (" unchecked" )
486
486
public MyList<?> createInstance (Type type ) {
487
487
// No need to use a parameterized list since the actual instance will have the raw type anyway.
488
488
return new MyList ();
0 commit comments