Reports redundant local variable types. These types can be inferred from the context and thus be replaced with var.

Example:

  void test(InputStream s) {
    try (InputStream in = s) {}
  }

After the fix is applied, the result will be like this:

  void test(InputStream s) {
    try (var in = s) {}
  }