为什么 第一次 put 的时候 不会出现 空指针呢?
Topic source为空和自己比较
if (t == null) { compare(key, key); // type (and possibly null) check root = new Entry<>(key, value, null); size = 1; modCount++; return null;}
- 1
为空和自己比较
if (t == null) { compare(key, key); // type (and possibly null) check root = new Entry<>(key, value, null); size = 1; modCount++; return null;}
求女票上微博
为什么 第一次 put 的时候 不会出现 空指针呢?
p2 应该为空啊