jre1.6.0_27 HashMap values() sourcecode
- by Liu guanghua
Today, I opened jre1.6.0_27 HashMap values() method sourcecode
389 public Set<K> keySet()
390 {
391 Set localSet = this.keySet;
392 return (this.keySet = new KeySet(null));
393 }
394
395 public Collection<V> values()
396 {
397 Collection localCollection = this.values;
398 return (this.values = new Values(null));
399 }
I think these sourcecode are error, but I don't know why they look like this.
Who can tell me why?