content: package com.alibaba.json.bvt.bug.bug2020;
  
  import com.alibaba.fastjson.JSON;
  import junit.framework.TestCase;
  
  import java.util.List;
  import java.util.Map;
  import java.util.Set;
  
  public class Bug_for_emptyList extends TestCase {
      public void test_for_issue() throws Exception {
          String str = "{\"values\":[1,2,3],\"map\":{\"a\":1},\"keys\":[1,2,3],}";
          VO vo = JSON.parseObject(str, VO.class);
          assertEquals(3, vo.values.size());
          assertEquals(1, vo.map.size());
          assertEquals(3, vo.keys.size());
      }
  
      public static class VO {
          private java.util.List values = kotlin.collections.CollectionsKt.emptyList();
          private java.util.Set keys = kotlin.collections.SetsKt.emptySet();
          private java.util.Map map = kotlin.collections.MapsKt.emptyMap();
  
          public List getValues()
          {
              return values;
          }
  
          public Map getMap() {
              return map;
          }
  
          public Set getKeys() {
              return keys;
          }
      }
  }
  