示例#1
0
  public Map a(a a1) {
    c c1 = a1.f();
    if (c1 == c.i) {
      a1.j();
      return null;
    }
    Map map = (Map) d.a();
    if (c1 == c.a) {
      a1.a();
      for (; a1.e(); a1.b()) {
        a1.a();
        Object obj = b.b(a1);
        if (map.put(obj, c.b(a1)) != null) {
          throw new ab((new StringBuilder()).append("duplicate key: ").append(obj).toString());
        }
      }

      a1.b();
      return map;
    }
    a1.c();
    while (a1.e()) {
      u.a.a(a1);
      Object obj1 = b.b(a1);
      if (map.put(obj1, c.b(a1)) != null) {
        throw new ab((new StringBuilder()).append("duplicate key: ").append(obj1).toString());
      }
    }
    a1.d();
    return map;
  }
示例#2
0
  public void a(d d1, Map map) {
    boolean flag3 = false;
    boolean flag2 = false;
    if (map == null) {
      d1.f();
      return;
    }
    if (!com.google.a.b.a.l.a(a)) {
      d1.d();
      java.util.Map.Entry entry;
      for (map = map.entrySet().iterator(); map.hasNext(); c.a(d1, entry.getValue())) {
        entry = (java.util.Map.Entry) map.next();
        d1.a(String.valueOf(entry.getKey()));
      }

      d1.e();
      return;
    }
    ArrayList arraylist = new ArrayList(map.size());
    ArrayList arraylist1 = new ArrayList(map.size());
    map = map.entrySet().iterator();
    boolean flag = false;
    while (map.hasNext()) {
      java.util.Map.Entry entry1 = (java.util.Map.Entry) map.next();
      t t1 = b.a(entry1.getKey());
      arraylist.add(t1);
      arraylist1.add(entry1.getValue());
      boolean flag1;
      if (t1.h() || t1.i()) {
        flag1 = true;
      } else {
        flag1 = false;
      }
      flag = flag1 | flag;
    }
    if (flag) {
      d1.b();
      for (int i = ((flag2) ? 1 : 0); i < arraylist.size(); i++) {
        d1.b();
        ag.a((t) arraylist.get(i), d1);
        c.a(d1, arraylist1.get(i));
        d1.c();
      }

      d1.c();
      return;
    }
    d1.d();
    for (int j = ((flag3) ? 1 : 0); j < arraylist.size(); j++) {
      d1.a(a((t) arraylist.get(j)));
      c.a(d1, arraylist1.get(j));
    }

    d1.e();
  }