Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8010490

FindBugs: double assignments in LambdaToMethod.visitIdent

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b86
    • Verification:
      Verified

      Description

      double assignment, LambdaToMethod 388


                          for (Map.Entry<Symbol, Symbol> encl_entry : lambdaContext.getSymbolMap(CAPTURED_THIS).entrySet()) {
                              if (tree.sym.isMemberOf((ClassSymbol) encl_entry.getKey(), types)) {
                                  JCExpression enclRef = make.Ident(encl_entry.getValue());
                                  result = tree.sym.name == names._this
                                          ? enclRef.setType(tree.type)
                                          : make.Select(enclRef, tree.sym).setType(tree.type);
                                  result = tree;
                                  return;

        Attachments

          Activity

            People

            Assignee:
            mcimadamore Maurizio Cimadamore
            Reporter:
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: