@@ -101,7 +101,7 @@ String result = jsonb.toJson(dogs);
101101
102102// We can also deserialize back into a raw collection, but since there is no way to infer a type here,
103103// the result will be a list of java.util.Map instances with string keys.
104- dogs = jsonb.fromJson(result, ArrayList.getClass() );
104+ dogs = jsonb.fromJson(result, ArrayList.class );
105105----
106106
107107==== Mapping a generic collection
@@ -517,7 +517,7 @@ public class CustomerAdapter implements JsonbAdapter<Customer, CustomerAnnotated
517517 public CustomerAnnotated adaptToJson(Customer c) throws Exception {
518518 if (c == null)
519519 return null;
520- CustomerAnnotated customer = new Customer ();
520+ CustomerAnnotated customer = new CustomerAnnotated ();
521521 customer.setId(c.getId());
522522 customer.setName(c.getName());
523523 return customer;
@@ -544,7 +544,7 @@ First scenario:
544544Jsonb jsonb = JsonbBuilder.create();
545545
546546// Create customer
547- Customer c = new Customer();
547+ Customer customer = new Customer();
548548
549549// Initialization code is skipped
550550
@@ -576,7 +576,7 @@ JsonbConfig config = new JsonbConfig()
576576Jsonb jsonb = JsonbBuilder.create(config);
577577
578578// Create customer
579- Customer c = new Customer();
579+ Customer customer = new Customer();
580580
581581// Initialization code is skipped
582582
0 commit comments