You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by Gyewon Lee <st...@gmail.com> on 2016/07/21 02:44:13 UTC
entrySet() throws UnsupportedOperationException in TracingMonotonicTreeMap?
Hi, all.
TracingMonotonicTreeMap is a data structure for storing Tang configuration
data internally.
When I first tried to iterate its keys in TracingMonotonicTreeMap, the
static checker reports that I should use entrySet() instead because it is
more efficient. However, I also found out that entrySet() operation is not
supported in TracingMonotonicTreeMap.
Is there any good reasons for not allowing entrySet() operation in
TracingMonotonicTreeMap? If there is, should we disable the static bug
checker in Tang?
Best regards,
Gyewon Lee
Re: entrySet() throws UnsupportedOperationException in TracingMonotonicTreeMap?
Posted by Gyewon Lee <st...@gmail.com>.
TracingMonotonicTreeMap's innerMap (MonotonicTreeMap) supports entrySet(),
so I am now working around this by implementing entrySet() using its
innerMap's entrySet().
But if TracingMonotonicTreeMap does not allow entrySet() for a specific
reason, we should find other workarounds.
Best regards,
Gyewon Lee
2016-07-21 11:44 GMT+09:00 Gyewon Lee <st...@gmail.com>:
> Hi, all.
>
> TracingMonotonicTreeMap is a data structure for storing Tang configuration
> data internally.
>
> When I first tried to iterate its keys in TracingMonotonicTreeMap, the
> static checker reports that I should use entrySet() instead because it is
> more efficient. However, I also found out that entrySet() operation is not
> supported in TracingMonotonicTreeMap.
>
> Is there any good reasons for not allowing entrySet() operation in
> TracingMonotonicTreeMap? If there is, should we disable the static bug
> checker in Tang?
>
> Best regards,
> Gyewon Lee
>