Skip to main content
Version: Next

Inefficient keySet Iterator

Check for inefficient uses of iterators that iterate on keys then lookup their values, instead of iterating on key-value pairs directly.

Activate with --inefficient-keyset-iterator.

Supported languages:

  • C/C++/ObjC: No
  • C#/.Net: No
  • Erlang: No
  • Hack: No
  • Java: Yes
  • Python: No

List of Issue Types​

The following issue types are reported by this checker: