[ https://issues.apache.org/jira/browse/NETBEANS-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931121#comment-16931121 ]
Laszlo Kishalmi commented on NETBEANS-2941: ------------------------------------------- The requested query has been implemented. > Hint "convert rule to switch" not shown with Gradle - openjdk12 - > --enable-preview > ---------------------------------------------------------------------------------- > > Key: NETBEANS-2941 > URL: https://issues.apache.org/jira/browse/NETBEANS-2941 > Project: NetBeans > Issue Type: Improvement > Components: projects - Gradle > Affects Versions: 11.0 > Environment: Gradle 5.5.1, Netbeans 11.1, Windows10, openjdk12 > Reporter: Helmut Leininger > Assignee: Laszlo Kishalmi > Priority: Minor > Labels: gradle, hints, pull-request-available > Fix For: 11.2 > > Time Spent: 40m > Remaining Estimate: 0h > > in the project's build.gradle are these specifications: > {code:java} > compileJava { > options.compilerArgs.addAll(['--enable-preview']) > } > run { > jvmArgs(['--enable-preview']) > } > > {code} > A program containing > {code:java} > switch (string) { > case"a123" -> System.out.println("a123"); > ... > }{code} > compiles and runs well in the IDE. > > if "old" switch format like > {code:java} > switch (string) { > case "a123": > System.out.println("a123"); > break; > ... > }{code} > is used, not hint > {code:java} > convert to rule switch{code} > is shown > -- This message was sent by Atlassian Jira (v8.3.2#803003) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists