This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Please implement "Assign Return Value To New Variable" hint as it does java.
fixed, change sets: 044b55b36fd2 0e071567f584 55848122e770 82f2749e6bcc
additional fix for variable name: ebb8a6204b1d
additional fix of CsmMethod.isAbsract(): a839b158927d
Integrated into 'main-silver', will be available in build *201309260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9855f875a31e User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #236272 Implement "Assign Return Value To New Variable" hint - scratch (transplanted from 044b55b36fd2fa9c75a094f703c1ad387c439079)
additional fix: c138dba481c2 - see bug #236379
additional fix: 2e93ffe25830 - see bug #236411
additional fix: 227781be747b
Integrated into 'main-silver', will be available in build *201310010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a2046be22d7c User: Alexander Simon <alexvsimon@netbeans.org> Log: additional fix Bug #236272 Implement "Assign Return Value To New Variable" hint - visit for, if recursively (transplanted from 2e93ffe25830f30e746f7568b9c67f5c1d68a857)
Integrated into 'releases/release74', will be available in build *201311111738* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/d0eeae672b8f User: Alexander Simon <alexvsimon@netbeans.org> Log: fixing Bug #236272 Implement "Assign Return Value To New Variable" hint - scratch (transplanted from 044b55b36fd2fa9c75a094f703c1ad387c439079)
The first issue is that second call of "introduce variable" breaks code. The second issue is inconsistency of "introduce variable", "introduce variable" should be available as well in Refactor main and context menus.
(In reply to Alexander Pepin from comment #10) > The first issue is that second call of "introduce variable" breaks code. > The second issue is inconsistency of "introduce variable", "introduce > variable" should be available as well in Refactor main and context menus. Please, file a separate defect/enhancement.
verified in build 20131111 the feature is implemented but needs improvement. The following bugs filed: bug #238383 bug #238384 bug #238386