Avoid unnecessary capturing the instance of enclosing class

If the lambda expression does not access the instance of enclosing class, e.g. no instance fields or instance methods accessed, the instance of enclosing class need not to be captured.
3 files changed