Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Fix mutability bug in SkylarkList/SkylarkMap Java APIs | 2017-08-07 | |
Previously, you could modify a frozen MutableList indirectly via its iterator(). This CL wraps the underlying list with a Collections.unmodifiableList when obtaining the iterator, and likewise for other methods that return views over Skylark data structures. This also eliminates the SkylarkList#getContents method in favor of just using the SkylarkList object itself. RELNOTES: None PiperOrigin-RevId: 164402129 |