You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Michael Bien (Jira)" <ji...@apache.org> on 2025/08/13 08:46:00 UTC

[jira] [Closed] (NETBEANS-4304) Incorrect return type on "Refactor->Create Method" inside lambda

     [ https://issues.apache.org/jira/browse/NETBEANS-4304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Bien closed NETBEANS-4304.
----------------------------------
    Fix Version/s: 28
       Resolution: Fixed

closed via https://github.com/apache/netbeans/pull/8713

> Incorrect return type on "Refactor->Create Method" inside lambda
> ----------------------------------------------------------------
>
>                 Key: NETBEANS-4304
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-4304
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Refactoring
>    Affects Versions: 11.2, 11.3
>            Reporter: Austin Stephens
>            Priority: Major
>              Labels: Method, Refactoring
>             Fix For: 28
>
>
> Using the following source code:
> {code:java}
> public class BugKiller {
> 	public static void kill(){
> 		Function<String, List<Integer>> logic;
> 		logic = item->doThingWithString(item, 5, true);
> 	}
> }
> {code}
> Invoking "Create Method" on `doThingWithString` will create a method with the return type of "Function<String, List<Integer>>" instead of "List<Integer>"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists